summarylogtreecommitdiffstats
path: root/winbox64
diff options
context:
space:
mode:
authorAlexander Bruegmann2020-03-19 09:54:02 +0100
committerAlexander Bruegmann2020-03-19 09:55:05 +0100
commit8edd93792af84e87592e8645ca09e9795931e60e (patch)
treed5469486c11f05eac82761f87e6b56066107db61 /winbox64
parent1172e67de2397cbf20f4e3d90c590c982d74c4de (diff)
downloadaur-8edd93792af84e87592e8645ca09e9795931e60e.tar.gz
update to v3.22. Thanks @nycex for providing a patch to make the WINEPREFIX xdg compliant!
Diffstat (limited to 'winbox64')
-rw-r--r--winbox6412
1 files changed, 8 insertions, 4 deletions
diff --git a/winbox64 b/winbox64
index 1983867fd75..94e19001431 100644
--- a/winbox64
+++ b/winbox64
@@ -1,11 +1,15 @@
#!/bin/bash
-export WINEPREFIX="$HOME"/.winbox/wine
+if [ -d "$HOME/.winbox" ]; then
+ export WINEPREFIX="$HOME/.winbox/wine"
+else
+ export WINEPREFIX="${WINBOX_HOME:-"${XDG_DATA_HOME:-"${HOME}/.local/share"}/winbox"}/wine"
+fi
export WINEARCH=win64
export WINEDLLOVERRIDES="mscoree=" # disable mono
export WINEDEBUG=-all
-if [ ! -d "$HOME"/.winbox ] ; then
- mkdir -p "$HOME"/.winbox/wine
- wineboot -u
+if [ ! -d "$WINEPREFIX" ] ; then
+ mkdir -p "$WINEPREFIX"
+ wineboot -u
fi
wine64 /opt/winbox64/winbox64.exe "$@"