Mercurial > hg > sonic-visualiser
annotate deploy/linux/AppRun @ 2067:c643094e4709
Use a slightly more compact dialog (esp on Mac)
author | Chris Cannam |
---|---|
date | Fri, 02 Nov 2018 14:42:48 +0000 |
parents | c0afaca5a029 |
children | 2cad3bf55850 |
rev | line source |
---|---|
Chris@2057 | 1 #!/bin/sh |
Chris@2057 | 2 |
Chris@2057 | 3 mydir=$(dirname "$0") |
Chris@2057 | 4 case "$mydir" in |
Chris@2057 | 5 /*) ;; |
Chris@2057 | 6 *) mydir="$PWD/$mydir";; |
Chris@2057 | 7 esac |
Chris@2057 | 8 |
Chris@2057 | 9 echo "AppImage root is $mydir" |
Chris@2057 | 10 |
Chris@2057 | 11 PATH="$mydir/usr/bin:$mydir/bin:$PATH" |
Chris@2057 | 12 export PATH |
Chris@2057 | 13 |
Chris@2057 | 14 LD_LIBRARY_PATH="$mydir/usr/lib:$mydir/usr/lib/x86_64-linux-gnu:$mydir/usr/lib64:$LD_LIBRARY_PATH" |
Chris@2057 | 15 export LD_LIBRARY_PATH |
Chris@2057 | 16 |
Chris@2057 | 17 QT_PLUGIN_PATH="$mydir/usr/lib/qt5/plugins/:$mydir/usr/lib/i386-linux-gnu/qt5/plugins/:$mydir/usr/lib/x86_64-linux-gnu/qt5/plugins/:$mydir/usr/lib32/qt5/plugins/:$mydir/usr/lib64/qt5/plugins/:$QT_PLUGIN_PATH" |
Chris@2057 | 18 export QT_PLUGIN_PATH |
Chris@2057 | 19 |
Chris@2057 | 20 XDG_DATA_DIRS="$mydir/usr/share:$XDG_DATA_DIRS:/usr/local/share:/usr/share" |
Chris@2057 | 21 export XDG_DATA_DIRS |
Chris@2057 | 22 |
Chris@2057 | 23 GSETTINGS_SCHEMA_DIR="$mydir/usr/share/glib-2.0/schemas:$GSETTINGS_SCHEMA_DIR" |
Chris@2057 | 24 export GSETTINGS_SCHEMA_DIR |
Chris@2057 | 25 |
Chris@2057 | 26 exec "$mydir/usr/bin/sonic-visualiser" "$@" |