summarylogtreecommitdiffstats
path: root/decky-loader-helper
blob: 8fddea1834c1abf76503fdcd3cfb42ce849bd954 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env sh

DECKY_LOADER_VERSION="$1"

DECKY_USER="$2"
DECKY_USER_HOME=$(getent passwd $DECKY_USER | cut -d: -f6)

DECKY_VAR_DATA="$DECKY_USER_HOME/.local/var/opt/decky-loader"
install -d -o $DECKY_USER -g $DECKY_USER "$DECKY_VAR_DATA/services" "$DECKY_VAR_DATA/plugins"
install -Dm 755 "/usr/lib/decky-loader/PluginLoader" "$DECKY_VAR_DATA/services/PluginLoader"
echo "$DECKY_LOADER_VERSION" > "$DECKY_VAR_DATA/services/.loader.version"

STEAM_DEBUGGING_FILE="$DECKY_USER_HOME/.steam/steam/.cef-enable-remote-debugging"
[ -f "$STEAM_DEBUGGING_FILE" ] || touch "$STEAM_DEBUGGING_FILE"