Icon property in settings.json should use a coma to extract an indexed icon resource from an executable the same way Explorer can #8375

Closed
opened 2026-01-31 01:27:54 +00:00 by claunia · 2 comments
Owner

Originally created by @rbeesley on GitHub (May 21, 2020).

Description of the new feature/enhancement

The icon property in settings.json should use a coma to extract an indexed icon resource from an executable the same way Explorer can. If a user is trying to point at another shell, the resource they want to use for showing the shell in Windows Terminal might be an embedded resource and that should be presumed to be the icon used when configuring a profile.

Proposed technical implementation details

For example, take Yori by @malxau. It is not difficult to add a Yori prompt to Windows Terminal, setting the commandline and statingDirectory properties, but ideally someone should be able to use "icon": "C:\\Program Files\\Yori\\yori.exe,1" to use the icon resource embedded in the shell executable. If the index isn't provided, just referencing the executable without an icon property, Windows Terminal should extract the first icon resource as the default icon to associate with the shell. Finally, if the icon property is not defined, Windows Terminal should look at the commandline executable and use the first icon resource as the default icon, so that the user doesn't need to go the extra step of extracting an .ico resource.

Originally created by @rbeesley on GitHub (May 21, 2020). <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING: 1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement. 2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement. 3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number). 4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement. 5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement. All good? Then proceed! --> # Description of the new feature/enhancement The `icon` property in `settings.json` should use a coma to extract an indexed icon resource from an executable the same way Explorer can. If a user is trying to point at another shell, the resource they want to use for showing the shell in Windows Terminal might be an embedded resource and that should be presumed to be the icon used when configuring a profile. <!-- A clear and concise description of what the problem is that the new feature would solve. Describe why and how a user would use this new functionality (if applicable). --> # Proposed technical implementation details For example, take Yori by @malxau. It is not difficult to add a Yori prompt to Windows Terminal, setting the `commandline` and `statingDirectory` properties, but ideally someone should be able to use `"icon": "C:\\Program Files\\Yori\\yori.exe,1"` to use the icon resource embedded in the shell executable. If the index isn't provided, just referencing the executable without an `icon` property, Windows Terminal should extract the first icon resource as the default icon to associate with the shell. Finally, if the `icon` property is not defined, Windows Terminal should look at the `commandline` executable and use the first icon resource as the default icon, so that the user doesn't need to go the extra step of extracting an .ico resource. <!-- A clear and concise description of what you want to happen. -->
claunia added the Issue-FeatureResolution-Duplicate labels 2026-01-31 01:27:54 +00:00
Author
Owner

@zadjii-msft commented on GitHub (May 21, 2020):

Thanks for the suggestion! This is actually already being tracked by another issue on our repo - please refer to #1504 for more discussion.

/dup #1504

@zadjii-msft commented on GitHub (May 21, 2020): Thanks for the suggestion! This is actually already being tracked by another issue on our repo - please refer to #1504 for more discussion. /dup #1504
Author
Owner

@ghost commented on GitHub (May 21, 2020):

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

@ghost commented on GitHub (May 21, 2020): Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#8375