You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Feature request: wt.exe should display shortcut icon in taskbar #4768
Area-SettingsIssues related to settings and customizability, for console or terminalIssue-FeatureComplex enough to require an in depth planning process and actual budgeted, scheduled work.Priority-3A description (P3)Product-TerminalThe new Windows Terminal.
With a shortcut I can assign a wt.exe configuration per shortcut. But when the shortcut is run the wt.exe icon is shown not the shortcut icon.
This makes it hard to choose configurations short of opening each wt.exe window.
cmd.exe is an example of doing this well, it displays the icon of the shortcut when it is run. And each shortcut gets their own icon set in the taskbar for all windows started with that shortcut.
This would make it easy to set up specialized configs of wt.exe and be able to navigate between them easily.
cmd.exe essentially has this feature. This should be able to be replicated by the Windows Terminal?
Create a shortcut1, target: C:\Windows\System32\cmd.exe
Add it's own icon. (Icon1)
Create a shortcut2 target: C:\Windows\System32\cmd.exe
Add it's own icon. (Icon2)
Start shortcut1, Icon1 displays in the taskbar.
Start shortcut2, Icon2 displays in the taskbar even though it is just a 2nd instance of cmd.exe.
Here is a screenshot:
What you are looking at:
2 separate cmd.exe sessions on the left & 2 different bash.exe sessions on the right. Each with their own taskbar icon. Very easy to choose the right session from the taskbar.
Reacted by Shimmy Weitzhandler, Srdjan Jovčić, maf1024, Jo Valentine-Cooper, Dan Thompson, Nikolay Rudakov and ChesuCR
I'm mildly worried that this is a platform bug. I'd bet that shortcuts to app execution aliases always use the app's icon, and not the shortcut's. We could pretty easily test this by adding a shortcut to ubuntu.exe (or another distro's launcher) and changing that icon.
Works as described above with bash.exe & powershell.exe.
Looking at task manager, cmd.exe shortcuts launches a console host / cmd.exe pair in an independent process.
wt.exe looks like it spawns children for each launch?
FYI: I just tried changing the icon on another app (robomongo.exe) and it displays different behavior than the cmd shell apps. It will use the new shortcut icon but any later invocations with other shortcuts will keep the icon of the original invocation shortcut.
I mean, this is a bug in the sense that setting an icon for wt.exedoesn't apply to WT windows in the same way it does for conhost windows.
My theory is really specific to app execution aliases - the platform does all sorts of weird things for "centennial" (packaged Win32 applications), and this might even be something they're tracking internally.
Also, conhost has a heck lot of code written to make this work. The path to the lnk that spawned it is passed in STARTUPINFO, and conhost goes and cracks the link and does a resource load on the link's icon specifier.
It's doable, it's just a lot of annoying gross Win32 work.
This is a feature-sized fix, so I've triaged it into the backlog. If somebody wants to look at it, and we know it actually works with app execution alias invocation (it might not!), we'd entertain it.
Also, conhost has a heck lot of code written to make this work. The path to the lnk that spawned it is passed in STARTUPINFO, and conhost goes and cracks the link and does a resource load on the link's icon specifier.
We could work-around this if there were a command-line option to set the icon. Perhaps that would be easier to implement?
I mean, no one's really taken a crack at it yet, so it's definitely still in the "ideation" phase.
#1871 (comment) has some ideas on plumbing the tab's icon up as a "badge" on the Terminal's taskbar icon.
I think there's maybe an overarching "I don't want different Terminal windows to glom together on the taskbar" request that's a part of this, and that I'm not sure we can do easily.
I dunno if different windows with different badges will de-glom. There's some thoughts in #8216, but I'm not gonna try and mix and match this thread with that one.
a now deprecated proposal
Maybe there's room for making the setting for "taskbarBadges" an enum like:
You know, after re-reading all this, I'm thinking that (#6556 + #14372) is a better solution for "I want to have a shortcut to a CLI application with a custom icon, and have the Terminal open with that icon"
I was able to change the taskbar icon for terminal using these instructions, but it doesn't solve the issue of different icons for different profiles. Seems a bit hacky as well, may not be a feature to rely on.
Maybe this has already been covered, but looks like the taskbar uses the appx id of the app to glom icons.
If there was a way to duplicate/alias appx ids, that combined with the above would be a workaround for me, but not sure that's possible. (create a 'wsl' id and a 'ps' id that both point at the store-managed wt id and setup shortcuts that use those appropriately.) If you only had two profiles to switch between, you could use the 'preview' and 'release' builds from the store, heh.
I think this is gonna probably come down to #1871 + #8216 after all the discussions with the taskbar folks. Full up replacing our taskbar icon seems like a non-starter.
Together, you could have different windows for different profiles, they wouldn't glom together, and they'd each have an overlay to indicate which profile they're running.
It is incomplete, and I haven't check how it does it, but winget-cli already changes the icon of the tab inside terminal when retrieving the list, and also show a progress bar on the taskbar icon.
Also, conhost has a heck lot of code written to make this work. The path to the lnk that spawned it is passed in STARTUPINFO, and conhost goes and cracks the link and does a resource load on the link's icon specifier.
It's doable, it's just a lot of annoying gross Win32 work.
Happy to take a stab at this, but wanted to check w/you first - perhaps this is in-progress already, or there was a re-thinking of what the best approach is. I see chatter here about what's the best way to go about this, and it's unclear to me if consensus has been reached on the best way to solve this. I don't care much either way, just want Windows Terminal to honour the shortcut I see via the LNK file :) (it's a regression from Win95 as far as I am concerned)
Area-SettingsIssues related to settings and customizability, for console or terminalIssue-FeatureComplex enough to require an in depth planning process and actual budgeted, scheduled work.Priority-3A description (P3)Product-TerminalThe new Windows Terminal.
Activity
zadjii-msft commentedon Mar 2, 2020
I'm mildly worried that this is a platform bug. I'd bet that shortcuts to app execution aliases always use the app's icon, and not the shortcut's. We could pretty easily test this by adding a shortcut to
ubuntu.exe(or another distro's launcher) and changing that icon.brucejo75 commentedon Mar 2, 2020
Works as described above with
bash.exe&powershell.exe.Looking at task manager,
cmd.exeshortcuts launches a console host / cmd.exe pair in an independent process.wt.exelooks like it spawns children for each launch?FYI: I just tried changing the icon on another app (
robomongo.exe) and it displays different behavior than the cmd shell apps. It will use the new shortcut icon but any later invocations with other shortcuts will keep the icon of the original invocation shortcut.brucejo75 commentedon Mar 2, 2020
Also I know this feature is used extensively by Microsoft and the industry. It is a way to have an icon for a shell script invocation.
zadjii-msft commentedon Mar 2, 2020
I mean, this is a bug in the sense that setting an icon for
wt.exedoesn't apply to WT windows in the same way it does for conhost windows.My theory is really specific to app execution aliases - the platform does all sorts of weird things for "centennial" (packaged Win32 applications), and this might even be something they're tracking internally.
brucejo75 commentedon Mar 2, 2020
ah, got it... I misunderstood. I will edit my comments...
DHowett-MSFT commentedon Mar 2, 2020
Also, conhost has a heck lot of code written to make this work. The path to the
lnkthat spawned it is passed inSTARTUPINFO, and conhost goes and cracks the link and does a resource load on the link's icon specifier.It's doable, it's just a lot of annoying gross Win32 work.
DHowett-MSFT commentedon Mar 6, 2020
This is a feature-sized fix, so I've triaged it into the backlog. If somebody wants to look at it, and we know it actually works with app execution alias invocation (it might not!), we'd entertain it.
brucejo75 commentedon Jul 10, 2020
Dustin L. Howett (MSFT) (@DHowett-MSFT), any chance this will be addressed? Thanks!
dc46and2 commentedon Jan 31, 2023
We could work-around this if there were a command-line option to set the icon. Perhaps that would be easier to implement?
gloa7 commentedon Apr 23, 2023
Is this still in the works?
zadjii-msft commentedon Apr 28, 2023
I mean, no one's really taken a crack at it yet, so it's definitely still in the "ideation" phase.
#1871 (comment) has some ideas on plumbing the tab's icon up as a "badge" on the Terminal's taskbar icon.
I think there's maybe an overarching "I don't want different Terminal windows to glom together on the taskbar" request that's a part of this, and that I'm not sure we can do easily.
I dunno if different windows with different badges will de-glom. There's some thoughts in #8216, but I'm not gonna try and mix and match this thread with that one.
a now deprecated proposal
Maybe there's room for making the setting for "taskbarBadges" an enum like:
"taskbarIcon": "default" | "badge" | "replace" | <path>or similar.
As a more comprehensive summarization:
taskbarIconwould be atheme.windowproperty, so that you could have different light & dark theme icons.commandlineexe itself"You know, after re-reading all this, I'm thinking that (#6556 + #14372) is a better solution for "I want to have a shortcut to a CLI application with a custom icon, and have the Terminal open with that icon"
dev/migrie/f/4768-taskbar-iconshas a WIP prototype. It can:settings proposal 2
Also related:
stobor827 commentedon Jul 4, 2023
I was able to change the taskbar icon for terminal using these instructions, but it doesn't solve the issue of different icons for different profiles. Seems a bit hacky as well, may not be a feature to rely on.
Maybe this has already been covered, but looks like the taskbar uses the appx id of the app to glom icons.
If there was a way to duplicate/alias appx ids, that combined with the above would be a workaround for me, but not sure that's possible. (create a 'wsl' id and a 'ps' id that both point at the store-managed wt id and setup shortcuts that use those appropriately.) If you only had two profiles to switch between, you could use the 'preview' and 'release' builds from the store, heh.
zadjii-msft commentedon Aug 17, 2023
I think this is gonna probably come down to #1871 + #8216 after all the discussions with the taskbar folks. Full up replacing our taskbar icon seems like a non-starter.
Together, you could have different windows for different profiles, they wouldn't glom together, and they'd each have an overlay to indicate which profile they're running.
sebbu2 commentedon Aug 15, 2024
It is incomplete, and I haven't check how it does it, but winget-cli already changes the icon of the tab inside terminal when retrieving the list, and also show a progress bar on the taskbar icon.
genghiskMSFT commentedon Nov 22, 2026
Happy to take a stab at this, but wanted to check w/you first - perhaps this is in-progress already, or there was a re-thinking of what the best approach is. I see chatter here about what's the best way to go about this, and it's unclear to me if consensus has been reached on the best way to solve this. I don't care much either way, just want Windows Terminal to honour the shortcut I see via the LNK file :) (it's a regression from Win95 as far as I am concerned)