oliverschwendener / ueli

Cross-Platform Keystroke Launcher
https://ueli.app
MIT License
3.66k stars 242 forks source link

[Bug] Icon Disappears or Displays Incorrectly When Target and Icon Files Differ in Shortcuts #1236

Open undecV opened 3 weeks ago

undecV commented 3 weeks ago

Describe the bug When the Target and Icon for a shortcut are not the same file, Ueli displays the icon from the Target instead of the one specified in the shortcut properties. This results in the icon either disappearing or showing incorrectly, as illustrated in the screenshots below.

To Reproduce No additional steps are needed if you already have shortcuts where the Target and Icon files differ. Otherwise, follow these steps:

Expected behavior Ueli should correctly display the icon that is specified in the shortcut's properties, even when it points to a different file than the Target.

Screenshots Fig 1: The icon disappears or is incorrectly displayed when the Target and Icon files are different.

Fig 1

Fig 2: Properties of two files—the native Discord icon on the left displays correctly, while the custom icon I created (right) does not. I used %LOCALAPPDATA% to anonymize the path.

Fig 2

Fig 3 shows search results in Ueli with an incorrect icon for the shortcut "LAV Video (MPC-HC internal)," where the Target is mpc-hc64.exe and the icon is lavvideo.ax.

Fig 3

Finally, Fig 4 shows the properties of this shortcut, confirming that the icon file is not the same as the Target:

Fig 4

Environment

Additional context This issue is inherited from [#1133].