-
Notifications
You must be signed in to change notification settings - Fork 9.1k
Send notifications even when we're unpackaged #19937
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev/migrie/fhl-spring26/bellStyle-notification
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -381,6 +381,21 @@ void WindowEmperor::HandleCommandlineArgs(int nCmdShow) | |
| __assume(false); | ||
| } | ||
|
|
||
| // When running without package identity, set an explicit AppUserModelID so | ||
| // that toast notifications (and other shell features) work correctly. | ||
| if (!IsPackaged()) | ||
| { | ||
| #if defined(WT_BRANDING_RELEASE) | ||
| LOG_IF_FAILED(SetCurrentProcessExplicitAppUserModelID(L"Microsoft.WindowsTerminal")); | ||
| #elif defined(WT_BRANDING_PREVIEW) | ||
| LOG_IF_FAILED(SetCurrentProcessExplicitAppUserModelID(L"Microsoft.WindowsTerminalPreview")); | ||
| #elif defined(WT_BRANDING_CANARY) | ||
| LOG_IF_FAILED(SetCurrentProcessExplicitAppUserModelID(L"Microsoft.WindowsTerminalCanary")); | ||
| #else | ||
| LOG_IF_FAILED(SetCurrentProcessExplicitAppUserModelID(L"Microsoft.WindowsTerminalDev")); | ||
|
Comment on lines
+389
to
+395
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. how does this work for different versions of portable mode? we have already (and a couple times) fixed issues where portable and unpackaged have "crosstalk". See how we generate the Window ID in the WindowEmperor.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
for example, we do not want different instances of portable mode or unpackaged to glom together with packaged or with eachother. |
||
| #endif | ||
| } | ||
|
|
||
| _app = winrt::TerminalApp::App{}; | ||
| _app.Logic().ReloadSettings(); | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wrong PR