mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-18 20:36:04 +00:00
* chore: consistent code branding * fix: carry legacy overrides, queues and live sync rows across the rename * fix: keep queued legacy overrides on a failed rename and separate merged queue entries
13 lines
394 B
Bash
13 lines
394 B
Bash
#!/bin/sh
|
|
echo "steamos-session-select: $*" >&2
|
|
case "${1:-}" in
|
|
""|gamescope) exit 0 ;;
|
|
esac
|
|
dir=${DD_LAUNCH_DIR:-}
|
|
if [ -z "$dir" ] || [ ! -d "$dir" ]; then
|
|
echo "steamos-session-select: not inside a DroidDeck session (DD_LAUNCH_DIR unset)" >&2
|
|
exit 1
|
|
fi
|
|
printf 'session=desktop\nui=desktop\nurl=\n' > "$dir/steam-launch.tmp" && mv -f "$dir/steam-launch.tmp" "$dir/steam-launch"
|
|
exit 0
|