Skip to content

Commit

Permalink
[Snap] Default SDL_VIDEODRIVER in warzone2100-launcher.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
past-due committed Aug 26, 2023
1 parent 9c2dd7f commit 10d2445
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/snap/warzone2100-launcher.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,9 @@ fi
export XDG_DATA_HOME="${SNAP_USER_COMMON}"
export XDG_CONFIG_HOME="${SNAP_USER_COMMON}"

# default SDL_VIDEODRIVER if unset (prefer wayland)
if [ -z "${SDL_VIDEODRIVER}" ]; then
export SDL_VIDEODRIVER="wayland,x11"
fi

exec "$@"

0 comments on commit 10d2445

Please sign in to comment.