-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsteamWindows
executable file
·36 lines (30 loc) · 1.04 KB
/
steamWindows
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
#!/bin/bash
#
# When executed it shuts down steam and launches a wineprefix with Steam with no-dwrite to override missing text.
# Author: Artur O. [email protected] (Justice @ Freenode #Archlinux)
if [[ "$1" == "-k" ]]; then
WINEPREFIX=~/.Games/steam wineserver -k
echo "Killing Steam from commandline"
exit 0
fi
echo Exporting Wineprefix
export WINEPREFIX=~/.Games/steam
export WINEDEBUG=-all #,+fps
export __GL_THREADED_OPTIMIZATIONS=0
process="$(pgrep -x steam)"
re='^[0-9]+$'
if [[ $process =~ $re ]]; then
kill -1 "$(pgrep -x steam)" || { echo "Could not kill process: "$(pgrep -x steam)"" && exit 1; }
fi
echo "$WINEPREFIX"
sed -n '/CSMT/p' "$WINEPREFIX"/user.reg
echo Launching Steam with --no-dwrite
if [[ "$1" == "-b" ]]; then
export WINEDEBUG=-all,+fps
wine ~/.Games/steam/drive_c/Program\ Files/Steam/Steam.exe -no-dwrite &> ~/fps.txt &
konsole -e tail -f ~/fps.txt &
else
wine ~/.Games/steam/drive_c/Program\ Files/Steam/Steam.exe -dev &> /dev/null &
fi
exit 0
#~/.PlayOnLinux/wine/linux-x86/1.7.20/bin/