summaryrefslogtreecommitdiff
path: root/snap/classic-launch
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2017-11-12 13:21:19 +0100
committerJörg Frings-Fürst <debian@jff-webhosting.net>2017-11-12 13:21:19 +0100
commit99656b4fb34c8a8c6a174c7953a6b218ba6568c6 (patch)
treef511703bdeeff064dbc314281c6abce9b0bb5348 /snap/classic-launch
parent6c629d45711b613257d30e8d5a1527003d9c3f1f (diff)
parent35fd3ab8990210defe10f1614abe4ca1afe04c5d (diff)
Merge branch 'feature/upstream' into develop
Diffstat (limited to 'snap/classic-launch')
-rwxr-xr-xsnap/classic-launch23
1 files changed, 23 insertions, 0 deletions
diff --git a/snap/classic-launch b/snap/classic-launch
new file mode 100755
index 0000000..96452d9
--- /dev/null
+++ b/snap/classic-launch
@@ -0,0 +1,23 @@
+#!/bin/sh
+
+if test "$1" = "classic"; then
+ shift
+ case $SNAP_ARCH in
+ amd64)
+ TRIPLET="x86_64-linux-gnu"
+ ;;
+ armhf)
+ TRIPLET="arm-linux-gnueabihf"
+ ;;
+ arm64)
+ TRIPLET="aarch64-linux-gnu"
+ ;;
+ *)
+ TRIPLET="$(uname -p)-linux-gnu"
+ ;;
+ esac
+
+ export LD_LIBRARY_PATH=$SNAP/usr/lib:$SNAP/usr/lib/$TRIPLET:$SNAP/lib/$TRIPLET
+fi
+
+exec ${SNAP}/bin/desktop-launch $@