rustdesk / rustdesk

An open-source remote desktop, and alternative to TeamViewer.

Home Page:https://rustdesk.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RustDesk doesn't apply multiple CLI arguments

NeoNyaa opened this issue · comments

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

  1. Open CMD/PowerShell
  2. Navigate to where RustDesk is installed
  3. Attempt to launch RustDesk with the following .\rustdesk.exe --tray --install-service
  4. 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