-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenvironment-proton
More file actions
executable file
·55 lines (55 loc) · 1.65 KB
/
environment-proton
File metadata and controls
executable file
·55 lines (55 loc) · 1.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/usr/bin/env bash
if [[ $LD_PRELOAD != "" ]]; then
export LD_PRELOAD_TMP="$LD_PRELOAD"
export LD_PRELOAD=""
fi
if [[ -z "${JMN_DEFAULT_APPID+x}" ]]; then
export JMN_DEFAULT_APPID="0"
fi
if [[ -z "${JMN_DEFAULT_COMPAT_ROOT+x}" ]]; then
export JMN_DEFAULT_COMPAT_ROOT="Steam-Other"
fi
if [[ -z "${PROTONCOMPATPATH+x}" ]]; then
if [[ -z "${PROTONPATH+x}" ]]; then
export PROTONCOMPATPATH="${XDG_DATA_HOME:-$HOME/.local/share}/Steam/compatibilitytools.d/Proton-GE Latest"
fi
fi
if [[ -z "${STEAM_COMPAT_DATA_PATH+x}" ]]; then
if [[ -n "${WINEPREFIX+x}" ]]; then
STEAM_COMPAT_DATA_PATH="$(realpath -q "$WINEPREFIX/..")"
export STEAM_COMPAT_DATA_PATH
fi
fi
if [[ -z "${WINEPREFIX+x}" ]]; then
export WINEPREFIX="$STEAM_COMPAT_DATA_PATH/pfx"
fi
if [[ -z "${PROTON_DEBUG_DIR+x}" ]]; then
export PROTON_DEBUG_DIR="$HOME/Games/__Apps__/Proton-Cache"
fi
source environment-wine-general
if ! [[ -d "${LOG_DIR}" ]]; then
if [[ -e "${LOG_DIR}" ]]; then
rm -rfv "$LOG_DIR"
fi
echo LOG_DIR
mkdir -pv "$LOG_DIR"
fi
touch "$LOG_DIR/prep.log"
truncate -s 0 "$LOG_DIR/prep.log"
echo
jmn_wine_create_directories &>> "$LOG_DIR/prep.log"
if [[ -z "${JMN_WATCH_LOG+x}" ]]; then
export JMN_WATCH_LOG="0"
fi
if [[ "$JMN_WATCH_LOG" = "1" ]] || [[ "$JMN_WATCH_LOG" = "true" ]] || [[ "$JMN_WATCH_LOG" = "yes" ]]; then
{
echo "Watching log file at \"$LOG_DIR/prep.log\""
echo "Press [CTRL+C] to stop."
echo ""
} >> "$LOG_DIR/prep.log"
alacritty --title "Game Output" --command tail --silent --follow=name --lines=+1 "$LOG_DIR/prep.log" &
fi
echo "${JMN_EXEC[@]}" &>> "$LOG_DIR/prep.log"
export LD_PRELOAD="$LD_PRELOAD_TMP"
("${JMN_EXEC[@]}") &>> "$LOG_DIR/prep.log"
environment-unset