SystemTrayMenu icon indicating copy to clipboard operation
SystemTrayMenu copied to clipboard

[BUG] Setting Directory Relative directory should not point to System32

Open OnkelM opened this issue 1 year ago • 2 comments

Why do i call this a bug? The term relative indicates to be relative to the parent, hence it should point to the path of the SystemTrayMenu.exe

The current situation also prevents usage in portable situations.

Also if the application cannot open/find the root folder and the popup asks to choose a directory, it should not repeat itself infinite if i click on the Cancel button.

  • OS: Windows 11
  • Version 1.3.5.0

OnkelM avatar Oct 04 '23 09:10 OnkelM

@OnkelM do you mean this button? image this button only makes sense when STM it portable on usb stick and also the root folder is on the the same usb stick and then a relative folder makes sense, therefore we made this button.

if there is no valid path STM can not show any menu, so a valid path is a necessary settings to start the app

Hofknecht avatar Oct 24 '23 16:10 Hofknecht

nevermind i found the issue, the relative path is taken correctly but the application retrieves also the startup folder for the MenuDataDirectoryState which can fail if the SystemTrayMenu.exe is started from another "current" directory.

e.g. running this in cmd "C:\temp> c:\programdata\systemtraymenu\1.3.5.0\systemtraymenu.exe" will result in the error "You have no access to the root directory of the app. Grant access to the directory or change the root directory."

but runnig it while in the correct folder e.g. ""C:\ProgramData\SystemTrayMenu\1.3.5.0> systemtraymenu.exe" will work

OnkelM avatar Oct 27 '23 08:10 OnkelM