comparison deploy/linux/AppRun @ 377:f7b1e81991e4

Fix AppRun
author Chris Cannam
date Fri, 05 Jun 2020 13:17:53 +0100
parents a0ff34e9e86b
children
comparison
equal deleted inserted replaced
376:a2d3a0dfcefa 377:f7b1e81991e4
3 mydir=$(dirname "$0") 3 mydir=$(dirname "$0")
4 case "$mydir" in 4 case "$mydir" in
5 /*) ;; 5 /*) ;;
6 *) mydir="$PWD/$mydir";; 6 *) mydir="$PWD/$mydir";;
7 esac 7 esac
8
9 echo "AppImage root is $mydir"
10 8
11 PATH="$mydir/usr/bin:$mydir/bin:$PATH" 9 PATH="$mydir/usr/bin:$mydir/bin:$PATH"
12 export PATH 10 export PATH
13 11
14 LD_LIBRARY_PATH="$mydir/usr/lib:$mydir/usr/lib/x86_64-linux-gnu:$mydir/usr/lib64:$LD_LIBRARY_PATH" 12 LD_LIBRARY_PATH="$mydir/usr/lib:$mydir/usr/lib/x86_64-linux-gnu:$mydir/usr/lib64:$LD_LIBRARY_PATH"
21 export XDG_DATA_DIRS 19 export XDG_DATA_DIRS
22 20
23 GSETTINGS_SCHEMA_DIR="$mydir/usr/share/glib-2.0/schemas:$GSETTINGS_SCHEMA_DIR" 21 GSETTINGS_SCHEMA_DIR="$mydir/usr/share/glib-2.0/schemas:$GSETTINGS_SCHEMA_DIR"
24 export GSETTINGS_SCHEMA_DIR 22 export GSETTINGS_SCHEMA_DIR
25 23
26 exec "$mydir/usr/bin/sonic-visualiser" "$@" 24 exec "$mydir/usr/bin/sonic-annotator" "$@"