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

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

Original Pull Request: https://github.com/microsoft/terminal/pull/6314

State: closed
Merged: Yes


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.
**Original Pull Request:** https://github.com/microsoft/terminal/pull/6314 **State:** closed **Merged:** Yes --- ## 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.
claunia added the pull-request label 2026-01-31 09:17:19 +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#26646