SystemTrayMenu icon indicating copy to clipboard operation
SystemTrayMenu copied to clipboard

[BUG] Shortcuts to some Control Panel items are seen as directory not file

Open chip33 opened this issue 2 years ago • 3 comments

Some Control Panel shortcuts are seen as an empty directory not a file when placed in the STM root directory. These include AutoPlay, Fonts and Power Options but not Device Manager.

Screenshot 2022-08-03 102145

Using "checkout (--detach)" in VS 2022 this seems to have been introduced in 1.2.9.20 commit 7c253fa2

Hopefully it can be reproduced just by copying shortcuts for AutoPlay or Power Options from Control Panel into STM root directory

test_controlPanel_shortcuts.zip

  • OS: tested on clean win 11 22H1
  • Version 1.2.9.21

chip33 avatar Aug 03 '22 09:08 chip33

Hey @chip33 Thank you for the feedback! this is https://github.com/Hofknecht/SystemTrayMenu/discussions/315 (find more detailed information there) this is an important topic, but we haven't found a solution on the internet yet, but it has to work somehow. It is planned that we will do this soon

Hofknecht avatar Aug 03 '22 14:08 Hofknecht

Hi @Hofknecht

Hi, ah yes, I see it is listed in the list of CLSID, but so is Device Manager and that opens correctly for me and does not have this "Directory empty" subfolder for me on latest build.

The actual Power Options shortcut does still work and opens Power Options correctly (and so do the other Control Panel shortcuts with this "Directory empty" subfolder). It also has an unusual context menu

Screenshot 2022-08-03 184534

I have had a Power Options shortcut (which I use often) in STM since the beginning and had not noticed anything wrong before so I rolled back through commits and at 12.9.19 commit bcb537d1 the "Directory empty" subfolder no longer appears. It starts for me in the next commit 12.9.20.

12.9.19 commit bcb537d1.zip

1.2.9.20 commit 7c253fa2.zip

I get the shortcuts by going to control panel > create shortcut> shortcut placed on desktop.

chip33 avatar Aug 03 '22 17:08 chip33

@chip33 @Hofknecht same problem with power setting .lnk so I'v changed the .lnk content C:\Windows\System32\control.exe powercfg.cpl,1 and it works

I use internet search to get an updated command line to replace the non working things.

useforgh avatar Aug 14 '23 13:08 useforgh