-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenvironment-wine
More file actions
executable file
·58 lines (57 loc) · 1.67 KB
/
environment-wine
File metadata and controls
executable file
·58 lines (57 loc) · 1.67 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
56
57
58
#!/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="default"
fi
if [[ -z "${JMN_DEFAULT_COMPAT_ROOT+x}" ]]; then
export JMN_DEFAULT_COMPAT_ROOT="Wine"
fi
if [[ -z "${PROTONCOMPATPATH+x}" ]]; then
if [[ -z "${PROTONPATH+x}" ]]; then
export PROTONCOMPATPATH="/opt/wine-cachyos"
fi
fi
if [[ -z "${STEAM_COMPAT_DATA_PATH+x}" ]] && [[ -z "${WINEPREFIX+x}" ]]; then
export WINEPREFIX="$HOME/.wine"
fi
if [[ -z "${STEAM_COMPAT_DATA_PATH+x}" ]]; then
if [[ -n "${WINEPREFIX+x}" ]]; then
export STEAM_COMPAT_DATA_PATH="$WINEPREFIX"
fi
fi
if [[ -z "${WINEPREFIX+x}" ]]; then
export WINEPREFIX="$STEAM_COMPAT_DATA_PATH"
fi
if [[ -z "${PROTON_DEBUG_DIR+x}" ]]; then
export PROTON_DEBUG_DIR="$HOME/Games/__Apps__/Wine-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"
jmn_wine_create_directories &>> "$LOG_DIR/prep.log"
echo "${JMN_EXEC_STRING[@]}"
if [[ -z "${JMN_WATCH_LOG+x}" ]]; then
export JMN_WATCH_LOG="1"
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