summaryrefslogtreecommitdiff
path: root/snap/classic-launch
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2017-11-11 18:47:33 +0100
committerJörg Frings-Fürst <debian@jff-webhosting.net>2017-11-11 18:47:33 +0100
commitf1a056923fce6dd0ebd778d381794d3090a62e8c (patch)
treebdec089a7e8046bec17d23c64d5c4ee4a356a1a0 /snap/classic-launch
parent0b098a24e80acb1bd7ffeed90c6c821f8420b84a (diff)
parentab6556e393162fff0e0e0c80a9fff689b4e2ca05 (diff)
Update upstream source from tag 'upstream/3.26.2'
Update to upstream version '3.26.2' with Debian dir f1471e23cdedd43d9950b3078b7120e6c8510a8f
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 $@