Terminal: Support exe/dll paths in the 'icon' setting

Created on 24 Jun 2019  路  4Comments  路  Source: microsoft/terminal

Support exe/icon paths in the 'icon' setting of a profile

The icon setting of a profile should allow the path to an EXE or DLL to be specified, along with an optional ID for an icon resource in the file.

For example, I should be able to create a profile using icons from SHELL32:

    ...
    "icon": "c:\Windows\System32\SHELL32.dll,210",
    ...

Optionally, if the icon is missing and the executable from the command line has icons, pick the default icon, much like how the shell does.

Area-Settings Help Wanted Issue-Task Product-Terminal

All 4 comments

I agree. or things like "icon": "C:\Program Files\PowerShell\6-preview\pwsh.exe",

Yeah, it would be pretty cool if we did this.

Notes: Right now we're using the XAML resource loader to get at our icons. If we want to support EXE/other PE resources we'll need to fall back to a more win32-like resource loader. There are real benefits to the XAML one, such as _it choosing the right icon scale_ and supporting vector graphics and stuff like that. I've tagged it help-wanted.

@DHowett-MSFT afaik not even the settings app in Windows uses SVG graphics but PNGs. I stumbled across them once. I see the point of having this more modern and getting rid of old ico restrictions.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

patriksvensson picture patriksvensson  路  143Comments

cinnamon-msft picture cinnamon-msft  路  62Comments

privacyguy123 picture privacyguy123  路  131Comments

Paul-Weisser picture Paul-Weisser  路  71Comments

CobusKruger picture CobusKruger  路  60Comments