mirror of
https://github.com/aaddrick/claude-desktop-debian.git
synced 2026-05-17 08:36:35 +03:00
XRDP sessions lack GPU acceleration; Electron's default GPU compositing renders a blank window. Detect XRDP via the $XRDP_SESSION env var and systemd-logind's session Type, then append --disable-gpu and --disable-software-rasterizer to the Electron args. Based on @davidamacey's fix in #320, with the detection hardened: we use `loginctl show-session -p Type --value` instead of probing for xrdp-sesman, because that daemon runs on any host with xrdp installed and would false-positive on local sessions. Adds tests/launcher-xrdp-detection.bats with 8 cases covering both positive and negative detection paths, including the XDG_SESSION_ID- unset and loginctl-nonzero edge cases. Fixes: #319 Co-authored-by: davidamacey <davidamacey@gmail.com> Co-authored-by: Claude <claude@anthropic.com>