summaryrefslogtreecommitdiff
path: root/games-util/steam-launcher/files/steam-wrapper-r2.sh
blob: 1c2fa8171aa6dd4381b3ae45ebdcd7084e7f7b98 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash

# Disallow overriding STEAM_RUNTIME. Setting it to 0 is unsupported and largely
# ineffective. Setting it to 1 breaks things.
unset STEAM_RUNTIME

# Gentoo's lsb-release doesn't set this.
export DISTRIB_RELEASE="@@PVR@@"

# Force the 64-bit client.
export STEAM_FORCE_CLIENT="steamrt64"

steam="${XDG_DATA_HOME:-${HOME}/.local/share}/Steam"
beta="${steam}/package/beta"

# The 64-bit client currently requires opting into the beta.
[[ -s ${beta} ]] || install -D -m0600 /dev/stdin "${beta}" <<< publicbeta

# Older installations don't check STEAM_FORCE_CLIENT.
touch "${steam}/.steam-enable-steamrt64-client"

. "${0%/*}"/../lib/steam/bin_steam.sh