diff --git a/usr/bin/portproton-session-select b/usr/bin/portproton-session-select index f07997a..7173e7d 100755 --- a/usr/bin/portproton-session-select +++ b/usr/bin/portproton-session-select @@ -8,11 +8,13 @@ SENTINEL_FILE="gamescope-session-type" # Determine the configuration directory if [[ "$USER" == "root" ]] ; then - config_dir="${XDG_CONF_DIR:-"/home/$4/.config"}" + config_dir="${XDG_CONFIG_HOME:-"/home/$4/.config"}" else - config_dir="${XDG_CONF_DIR:-"$HOME/.config"}" + config_dir="${XDG_CONFIG_HOME:-"$HOME/.config"}" fi +mkdir -p "${config_dir}/environment.d" + [[ -f "$config_dir/$SENTINEL_FILE" ]] && source "$config_dir/$SENTINEL_FILE" session="${1:-gamescope}" @@ -96,10 +98,14 @@ case "$session" in fi create_sentinel=1 ;; - gamescope) + portprotonqt) session_launcher="gamescope-session-portprotonqt" create_sentinel=1 ;; + gamescope) + session_launcher="gamescope-session-steam" + create_sentinel=1 + ;; *) die "Unrecognized session '$session'" ;; diff --git a/usr/bin/portprotonqt-desktop-return b/usr/bin/portprotonqt-desktop-return index 859d99c..ceea954 100755 --- a/usr/bin/portprotonqt-desktop-return +++ b/usr/bin/portprotonqt-desktop-return @@ -1,6 +1,6 @@ #!/usr/bin/env bash -/usr/bin/portproton-session-select gamescope +/usr/bin/portproton-session-select portprotonqt CONFIG_FILE="$HOME/.config/gamescope-session-type"