The project tries to use systemd-run here:
|
if command -v systemd-run &>/dev/null && [[ -n "${XDG_RUNTIME_DIR:-}" ]]; then |
This is a problem for me because I run claude desktop in a sandbox that doesn't have access to the socket /run/user/1000/systemd/private that systemd-run uses to communicate. systemd-run exists so the check for its existence with command -v systemd-run succeeds but the execution in the next line /run/user/1000/systemd/private ... fails because systemd-run fails because the socket doesn't exist. This makes claude desktop not start.
I fixed this by changing the start script to not attempt to run systemd-run. It would be nice if I could pass an argument to claude desktop so that it doesn't attempt to use systemd-run. Or it could attempt to use it but continue when it fails.
The project tries to use systemd-run here:
claude-desktop-bin/scripts/claude-desktop-launcher.sh
Line 1079 in aa7dff0
This is a problem for me because I run claude desktop in a sandbox that doesn't have access to the socket
/run/user/1000/systemd/privatethat systemd-run uses to communicate. systemd-run exists so the check for its existence withcommand -v systemd-runsucceeds but the execution in the next line/run/user/1000/systemd/private ...fails because systemd-run fails because the socket doesn't exist. This makes claude desktop not start.I fixed this by changing the start script to not attempt to run systemd-run. It would be nice if I could pass an argument to claude desktop so that it doesn't attempt to use systemd-run. Or it could attempt to use it but continue when it fails.