dumbeau / AutoHotPie

Radial menus in Windows, aka PIE MENYOOS!
MIT License
367 stars 21 forks source link

Extract icons from selected "Run file" command. #81

Open dumbeau opened 1 year ago

dumbeau commented 1 year ago
image

Automatic extraction of icons from .exe file (if possible) Also add support .ico format (now only .png)

Suggested by Eshkermene on Discord.

May be best to incorporate this into the application switcher function as well,

ryjacky commented 1 year ago

Just some idea:

This may be done with app.getFileIcon(path[, options]) on Windows https://www.electronjs.org/docs/latest/api/app#appgetfileiconpath-options

for Mac and Linux, the function may not work properly so another function may be needed nativeImage.createThumbnailFromPath(path, size) https://www.electronjs.org/docs/latest/api/native-image#nativeimagecreatethumbnailfrompathpath-size-macos-windows