Files
a13labs.infra/ansible/files/game_station/bin/system/steamos
T

15 lines
384 B
Bash
Raw Normal View History

#!/bin/bash
set -euo pipefail
LOG_FILE="$HOME/.local/logs/session.log"
log() { echo "[$(date --iso-8601=seconds)] $*" | tee -a "$LOG_FILE"; }
if [[ -f "$HOME/.desktop-session-plasma" ]]; then
log "Plasma session selected."
rm "$HOME/.desktop-session-plasma"
exec /usr/bin/startplasma-wayland
else
log "Gamescope session selected."
exec /usr/local/bin/launch-gamescope
fi