-
Notifications
You must be signed in to change notification settings - Fork 8.5k
Automatically populate icons for the associated profiles #705
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
Comments
This is something that I've wanted to do, but just haven't got the chance to yet. This was previously MSFT: 21097504 https://stackoverflow.com/a/1520223 We can get the HICON from an exe. Theoretically, there should be a way to turn that icon into a bitmap, and a way to load that bitmap as an image that UWP XAML can use. That Icon could be used in the new tab button's flyout. this WON'T work for WSL distros - they're Reparse points, so their exe's don't have ico's associated with them, the app does. |
Did you check the EXE files in WSL Appx packages? |
@Biswa96 It's possible that'll work. You'd probably have to navigate through the reparse point to find the real exe when you encounter one. It's certainly possible to do, though I don't know how to. |
This is highly related to #1504 |
You know, in retrospect, automatically guessing the icon from the commandline is probably a bad idea. Something like #1504 is the better solution here - allowing the user to manually declare that they'd like to use an exe for the icon. It's less "magic", but it's more robust. So we'll just focus on that aspect of this request for now. |
So, I'll provide the counteropinion on this one. I think it's the right thing to do. Because we can be the default terminal on Windows, we will want to derive icons from any ¹which allow you to specify a custom icon, and a bunch of internal developers do just that; I have to assume it's common practice outside Microsoft as well 😄 |
Huh, I think this got re-iterated in #7552 - I think we're gonna make it so any profile that doesn't have an icon explicitly set will automatically try to use the exe as the icon |
Looping back on this after some other work on icons.
This is easy enough, sorta. We can pretty easily fall back to trying to use the commandline if the This kinda leads to a pair of discussion questions:
We'll sort this out in review. |
I wonder if it would be acceptable to:
Not sure if that's something we can officially figure out |
…mmandline (#15843) Basically, title. If you null out the icon, we'll automatically try to use the `commandline` as an icon (because we can now). We'll even be smart about it - `cmd.exe /k echo wassup` will still just use the ico of `cmd.exe`. This doesn't work for `ubuntu.exe` (et. al), because that commandline is technically a reparse point, that doesn't actually have an icon associated with it. Closes #705 `"none"` becomes our sentinel value for "no icon". This will also use the same `NormalizeCommandLine` we use for commandline matching for finding the full path to the exe.
Your Windows build number:
Microsoft Windows [Version 10.0.18362.86]
What you're doing and what's happening:
Opening the terminal for the first time does not automatically select icons for the profiles
What's wrong / what should be happening instead:
Icons should be automatically placed in the profile for use in the flyout, tab list, and jump list
The text was updated successfully, but these errors were encountered: