aboutsummaryrefslogtreecommitdiffstats
path: root/albion-online-launcher-bin/Albion-Online
diff options
context:
space:
mode:
authorTharre <tharre3@gmail.com>2017-07-24 05:09:19 +0200
committerTharre <tharre3@gmail.com>2017-07-24 05:09:19 +0200
commit6f4bb15efdd212d9f3233cea2152c145d1342de0 (patch)
treea5621abfd4acd2bfe3961cb6f685a81671553f60 /albion-online-launcher-bin/Albion-Online
parentd7149a35e7ab25240814ee1fd7cbddf995c011e7 (diff)
downloadpkgbuilds-6f4bb15efdd212d9f3233cea2152c145d1342de0.tar.gz
pkgbuilds-6f4bb15efdd212d9f3233cea2152c145d1342de0.tar.xz
pkgbuilds-6f4bb15efdd212d9f3233cea2152c145d1342de0.zip
Add albion-online-launcher
Diffstat (limited to 'albion-online-launcher-bin/Albion-Online')
-rwxr-xr-xalbion-online-launcher-bin/Albion-Online16
1 files changed, 16 insertions, 0 deletions
diff --git a/albion-online-launcher-bin/Albion-Online b/albion-online-launcher-bin/Albion-Online
new file mode 100755
index 0000000..73b4b11
--- /dev/null
+++ b/albion-online-launcher-bin/Albion-Online
@@ -0,0 +1,16 @@
+#!/bin/sh
+XDG_DATA_HOME="${XDG_DATA_HOME-"$HOME/.local/share"}"
+INSTALL_DIR="$XDG_DATA_HOME/albion-online"
+
+if ! cmp -s "$INSTALL_DIR/launcher/version.txt" /usr/share/albion-online/launcher/version.txt; then
+ mkdir -p "$INSTALL_DIR"
+ chmod 700 "$INSTALL_DIR"
+ rm -rf "$INSTALL_DIR/launcher"
+ cp -a /usr/share/albion-online/launcher "$INSTALL_DIR"
+fi
+
+# FIXME: remove when qt scaling bug is fixed
+export QT_AUTO_SCREEN_SCALE_FACTOR=0
+
+export LD_PRELOAD="$INSTALL_DIR/game_x64/Albion-Online_Data/Plugins/x86_64/libSDL2-2.0.so.0"
+"$INSTALL_DIR/launcher/Albion-Online"