epan/dissectors/pidl/drsuapi/drsuapi.cnf supplementalCredentials without packages
[wireshark-sm.git] / packaging / appimage / Stratoshark-AppRun.in
blob55eba72f909cc47e384b1e6259255d35033f0fca
1 #!/bin/sh
3 # Custom AppRun entry point that allows symlinking multiple
4 # executables, e.g. stratoshark, tshark, dumpcap, editcap, etc.
6 # Adapted from
7 # https://github.com/probonopd/ippsample/blob/feature/appimage/appimage/AppRun
9 SELF=$(readlink -f "$0")
10 HERE=${SELF%/*}
12 # https://github.com/AppImage/AppImageKit/issues/126
13 export LD_LIBRARY_PATH="${APPDIR}/usr/lib:${LD_LIBRARY_PATH}"
15 # We should probably set these relative to the program path in
16 # wsutil/filesystem.c
17 if [ -z "$STRATOSHARK_DATA_DIR" ] ; then
18 export STRATOSHARK_DATA_DIR="$APPDIR@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_DATADIR@/stratoshark"
21 if [ -z "$STRATOSHARK_EXTCAP_DIR" ] ; then
22 export STRATOSHARK_EXTCAP_DIR="$APPDIR@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@/stratoshark/extcap"
25 if [ -z "$STRATOSHARK_PLUGIN_DIR" ] ; then
26 export STRATOSHARK_PLUGIN_DIR="$APPDIR@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@/stratoshark/plugins"
29 # See if we were called by runtime.c, which sets APPIMAGE, ARGV0,
30 # and APPDIR.
31 if [ -n "$APPIMAGE" ] && [ -n "$ARGV0" ] ; then
32 BINARY_NAME=${ARGV0##*/}
33 else
34 BINARY_NAME=${0##*/}
37 if [ -e "$HERE/usr/bin/$BINARY_NAME" ] ; then
38 exec "$HERE/usr/bin/$BINARY_NAME" "$@"
39 else
40 exec "$HERE/usr/bin/stratoshark" "$@"