Launch Steam via nohup under steam user and enforce stable ~/.steam symlink for reboot-safe startup. Co-authored-by: Cursor <cursoragent@cursor.com>
25 lines
899 B
JSON
25 lines
899 B
JSON
{
|
|
"env": {
|
|
"PATH": "$(PATH):$(HOME)/.local/bin:/usr/games"
|
|
},
|
|
"apps": [
|
|
{
|
|
"name": "Desktop",
|
|
"image-path": "desktop.png"
|
|
},
|
|
{
|
|
"name": "Steam Big Picture",
|
|
"detached": [
|
|
"bash -lc 'id steam >/dev/null 2>&1 || useradd -m -s /bin/bash steam; mkdir -p /home/steam/.local/share/Steam /tmp/xdg-steam; ln -sfn /home/steam/.local/share/Steam /home/steam/.steam; chown -R steam:steam /home/steam /tmp/xdg-steam; runuser -u steam -- nohup env DISPLAY=:99 HOME=/home/steam XDG_RUNTIME_DIR=/tmp/xdg-steam LANG=C LC_ALL=C /usr/games/steam -tenfoot -no-cef-sandbox -cef-disable-gpu -cef-disable-gpu-compositing >/home/steam/steam-app.log 2>&1 < /dev/null &'"
|
|
],
|
|
"prep-cmd": [
|
|
{
|
|
"do": "",
|
|
"undo": "bash -lc 'pkill -u steam -f \"/usr/games/steam\" || true'"
|
|
}
|
|
],
|
|
"image-path": "steam.png"
|
|
}
|
|
]
|
|
}
|