[PR #6314] [MERGED] Fix a crash with this method when running unpackaged #26641

Open
opened 2026-01-31 09:17:18 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/6314
Author: @zadjii-msft
Created: 6/2/2020
Status: Merged
Merged: 6/3/2020
Merged by: @undefined

Base: masterHead: dev/migrie/b/unpackaged-StartupTask-crash


📝 Commits (1)

  • 2b75047 Fix a crash with this method when running unpackaged

📊 Changes

1 file changed (+11 additions, -0 deletions)

View changed files

📝 src/cascadia/TerminalApp/AppLogic.cpp (+11 -0)

📄 Description

Summary of the Pull Request

I was debugging the terminal unpackaged, and noticed that this method crashes immediately. I'm gonna bet that this functionality only works when the app is installed as a package. Wrapping this whole method up in one big ol' try/catch seems to fix the immediate crash.

References

PR Checklist

  • I work here
  • Tests added/passed
  • [n/a] Requires documentation to be updated

Detailed Description of the Pull Request / Additional comments

We could display a warning if the user has this property set and is running the terminal unpackaged, to clue them in that it won't work? I'm willing to file a follow-up for that, but I think we should fix the crash now.

Validation Steps Performed

  • Ran the terminal successfully unpackaged.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/microsoft/terminal/pull/6314 **Author:** [@zadjii-msft](https://github.com/zadjii-msft) **Created:** 6/2/2020 **Status:** ✅ Merged **Merged:** 6/3/2020 **Merged by:** [@undefined](undefined) **Base:** `master` ← **Head:** `dev/migrie/b/unpackaged-StartupTask-crash` --- ### 📝 Commits (1) - [`2b75047`](https://github.com/microsoft/terminal/commit/2b75047fb17da6af8afed6a60790f439f968d0f7) Fix a crash with this method when running unpackaged ### 📊 Changes **1 file changed** (+11 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/TerminalApp/AppLogic.cpp` (+11 -0) </details> ### 📄 Description ## Summary of the Pull Request I was debugging the terminal unpackaged, and noticed that this method crashes immediately. I'm gonna bet that this functionality only works when the app is installed as a package. Wrapping this whole method up in one big ol' `try/catch` seems to fix the immediate crash. ## References * Introduced in #4908 ## PR Checklist * [x] I work here * [ ] Tests added/passed * [n/a] Requires documentation to be updated ## Detailed Description of the Pull Request / Additional comments We _could_ display a warning if the user has this property set and is running the terminal unpackaged, to clue them in that it won't work? I'm willing to file a follow-up for that, but I think we should fix the crash _now_. ## Validation Steps Performed * Ran the terminal successfully unpackaged. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-31 09:17:18 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#26641