RustDesk doesn't apply multiple CLI arguments
NeoNyaa opened this issue · comments
NeoNyaa commented
Bug Description
If I was to launch RustDesk with --tray --install-service, only the first argument is parsed and every argument after that is dropped.
How to Reproduce
- Open CMD/PowerShell
- Navigate to where RustDesk is installed
- Attempt to launch RustDesk with the following
.\rustdesk.exe --tray --install-service
- RustDesk will launch hidden in the system tray BUT won't install the service, even if inheriting admin perms from CMD/PowerShell
Expected Behavior
I think that RustDesk should parse all CLI arguments and not just the first one it gets. If it's intended for RustDesk to do so, it is not working.
Operating system(s) on local side and remote side
Windows 11
RustDesk Version(s) on local side and remote side
1.2.3-2
Screenshots
2024-05-08.10-33-46.mp4
Additional Context
The first launch in the video should install the service while also launching to the system tray but instead only launches to the system tray
The second launch in the video installs the service WITHOUT launching to system tray