#910·winboat

[Bug] App "Arguments" are passed as one quoted argv entry, so programs ignore them

Author: kyleseanCreated Sep 29, 2026Updated Sep 30, 2026

What version of WinBoat are you running?

0.9.0, built from git commit b9a2df2

Your Environment

  • Host: Arch Linux (Omarchy), Hyprland, single 3840x2160 monitor @ scale 1.6
  • FreeRDP: xfreerdp3 3.31.1 (distro package freerdp 2:3.31.1-1, not flatpak)
  • Container runtime: Docker; guest ghcr.io/dockur/windows:6.03 (Windows 11)
  • Guest app used for testing: DeepSeek Harness (Electron)
  • Logs below come from ~/.local/share/winboat-app/winboat.log

Steps to Reproduce / Context

I wanted to start this Electron app with a few Chromium switches, because without them its RemoteApp window stays blank (Chromium draws through DirectComposition and the window content never makes it to the client). So I added the app via "Add Custom" and put

--disable-gpu --disable-gpu-compositing --disable-direct-composition

into the Arguments field. The app starts, but the switches do nothing: the window stays blank and in the guest the renderer keeps running with normal GPU compositing.

The reason is the quoting in launchApp (src/renderer/lib/winboat.ts, line 737 on master):

typescript
`/app:program:${app.Path},name:${cleanAppName},cmd:"${app.Args}"`,

The whole Args string is wrapped in quotes, so the guest gets it as a single argv entry. I checked the real command line of the app process in the guest with Get-CimInstance Win32_Process while it was running:

CommandLine : "C:\Users\Kyle\AppData\Local\Programs\DeepSeek Harness\DeepSeek Harness.exe" "--disable-gpu --disable-gpu-compositing --disable-direct-composition"

One argument, quotes included, so Chromium recognises none of the three switches. Launching the same binary with the same args but without the surrounding quotes gives:

CommandLine : "...\DeepSeek Harness.exe" --disable-gpu --disable-gpu-compositing --disable-direct-composition

and the app renders fine, so it's the quoting and not something in my RDP/FreeRDP setup.

Probably the reason this went unnoticed: cmd.exe is lenient about it (cmd:/c copy ... works with or without the quotes), but any program that splits argv itself (Electron/Chromium, most apps that aren't plain CLI tools) sees one argument instead of several.

The same thing applies to the Edit dialog of an already discovered app, but that one is blocked by the "An app with this name already exists" validation (there's a separate request for that in #204), so I ended up with a custom entry.

Logs

# winboat.log — trimmed to the relevant part (password already masked by WinBoat as /p:********)
#
# 1) 0.9.0 built from master, BEFORE the local one-line fix: generated command quotes the (empty) Args
2026-09-29 14:54:09 | INFO | Guest is online, passing through devices
2026-09-29 15:23:46 | INFO | Launching app: DeepSeek Harness at path C:\Users\Kyle\AppData\Local\Programs\DeepSeek Harness\DeepSeek Harness.exe
2026-09-29 15:23:46 | INFO | Launch FreeRDP with command:
xfreerdp3  /u:Kyle  /p:********  /v:127.0.0.1  /port:47273  /cert:ignore  +clipboard  /sound:sys:pulse  /microphone:sys:pulse  /floatbar  /compression  /sec:tls  -wallpaper  /scale-desktop:100  /wm-class:winboat-DeepSeek\ Harness  /app:program:C:\\Users\\Kyle\\AppData\\Local\\Programs\\DeepSeek\ Harness\\DeepSeek\ Harness.exe,name:DeepSeek\ Harness,cmd:\"\"

# 2) same app, AFTER replacing cmd:"${app.Args}" with cmd:${app.Args ? app.Args : '""'} in launchApp:
#    the switches are generated unquoted, the process command line on the guest then holds three
#    separate arguments and the app renders correctly
2026-09-29 21:09:59 | INFO | Launching app: DeepSeek Harness (GPU off) at path C:\Users\Kyle\AppData\Local\Programs\DeepSeek Harness\DeepSeek Harness.exe
2026-09-29 21:09:59 | INFO | Launch FreeRDP with command:
xfreerdp3  /u:Kyle  /p:********  /v:127.0.0.1  /port:47273  /cert:ignore  +clipboard  /sound:sys:pulse  /microphone:sys:pulse  /floatbar  /compression  /sec:tls  /admin  -wallpaper  /scale-desktop:100  /wm-class:winboat-DeepSeek\ Harness\ \(GPU\ off\)  /app:program:C:\\Users\\Kyle\\AppData\\Local\\Programs\\DeepSeek\ Harness\\DeepSeek\ Harness.exe,name:DeepSeek\ Harness\ \(GPU\ off\),cmd:--disable-gpu\ --disable-gpu-compositing\ --disable-direct-composition\"\"
2026-09-29 21:09:59 | INFO | Launching app: DeepSeek Harness (GPU off) at path C:\Users\Kyle\AppData\Local\Programs\DeepSeek Harness\DeepSeek Harness.exe
2026-09-29 21:09:59 | INFO | Launch FreeRDP with command:
xfreerdp3  /u:Kyle  /p:********  /v:127.0.0.1  /port:47273  /cert:ignore  +clipboard  /sound:sys:pulse  /microphone:sys:pulse  /floatbar  /compression  /sec:tls  /admin  -wallpaper  /scale-desktop:100  /wm-class:winboat-DeepSeek\ Harness\ \(GPU\ off\)  /app:program:C:\\Users\\Kyle\\AppData\\Local\\Programs\\DeepSeek\ Harness\\DeepSeek\ Harness.exe,name:DeepSeek\ Harness\ \(GPU\ off\),cmd:--disable-gpu\ --disable-gpu-compositing\ --disable-direct-composition\"\"

Expected Behavior

Arguments entered for an app are passed on to the Windows program as separate arguments.

Current Behavior

They arrive as one quoted argument, so the program ignores them.

Possible Solution

Drop the surrounding quotes:

diff
-                `/app:program:${app.Path},name:${cleanAppName},cmd:"${app.Args}"`,
+                `/app:program:${app.Path},name:${cleanAppName},cmd:${app.Args ? app.Args : '""'}`,

cmd:"" is kept for apps without arguments, and anyone who needs quotes inside an argument can just type them in the field. I applied this locally and the args now arrive as separate switches (and the app window renders).

Quality Notice

  • I have checked the issue tracker and verified that this bug is a unique case.