-
Notifications
You must be signed in to change notification settings - Fork 8.4k
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
Feature request: wt.exe should display shortcut icon in taskbar #4768
Comments
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 |
Works as described above with Looking at task manager,
FYI: I just tried changing the icon on another app ( |
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. |
I mean, this is a bug in the sense that setting an icon for 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. |
ah, got it... I misunderstood. I will edit my comments... |
Also, conhost has a heck lot of code written to make this work. The path to the 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. |
@DHowett-MSFT, any chance this will be addressed? Thanks! |
We could work-around this if there were a command-line option to set the icon. Perhaps that would be easier to implement? |
Is this still in the works? |
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. a now deprecated proposalMaybe there's room for making the setting for "taskbarBadges" an enum like:
or similar. As a more comprehensive summarization:
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"
settings proposal 2globals.showTaskbarOverlay: bool,
globals.taskbarGlomBehavior: "default"|"window"|"profile", Also related:
|
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. |
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. |
Description of the new feature/enhancement
With a shortcut I can assign a
wt.exe
configuration per shortcut. But when the shortcut is run thewt.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.This is similar to:
cmd.exe
examplecmd.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)
Here is a screenshot:
What you are looking at:
2 separate
cmd.exe
sessions on the left & 2 differentbash.exe
sessions on the right. Each with their own taskbar icon. Very easy to choose the right session from the taskbar.The text was updated successfully, but these errors were encountered: