Chris@2057: #!/bin/sh Chris@2057: Chris@2057: mydir=$(dirname "$0") Chris@2057: case "$mydir" in Chris@2057: /*) ;; Chris@2057: *) mydir="$PWD/$mydir";; Chris@2057: esac Chris@2057: Chris@2057: echo "AppImage root is $mydir" Chris@2057: Chris@2057: PATH="$mydir/usr/bin:$mydir/bin:$PATH" Chris@2057: export PATH Chris@2057: Chris@2057: LD_LIBRARY_PATH="$mydir/usr/lib:$mydir/usr/lib/x86_64-linux-gnu:$mydir/usr/lib64:$LD_LIBRARY_PATH" Chris@2057: export LD_LIBRARY_PATH Chris@2057: Chris@2057: 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: export QT_PLUGIN_PATH Chris@2057: Chris@2057: XDG_DATA_DIRS="$mydir/usr/share:$XDG_DATA_DIRS:/usr/local/share:/usr/share" Chris@2057: export XDG_DATA_DIRS Chris@2057: Chris@2057: GSETTINGS_SCHEMA_DIR="$mydir/usr/share/glib-2.0/schemas:$GSETTINGS_SCHEMA_DIR" Chris@2057: export GSETTINGS_SCHEMA_DIR Chris@2057: Chris@2057: exec "$mydir/usr/bin/sonic-visualiser" "$@"