diff options
-rwxr-xr-x | packaging/macosx/utility-launcher | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/packaging/macosx/utility-launcher b/packaging/macosx/utility-launcher index 48f00e5c61..e8667a18e8 100755 --- a/packaging/macosx/utility-launcher +++ b/packaging/macosx/utility-launcher @@ -18,15 +18,16 @@ if [ ! -d "$WIRESHARK_APP_DIR" ] ; then exit 1 fi -APPNAME=`basename "$0"` +APP_NAME=`basename "$0"` -if [ -f "$WIRESHARK_APP_DIR/Frameworks/QtWidgets" -o -d "$WIRESHARK_APP_DIR/Frameworks/QtWidgets.framework" ] ; then +APP_CONTENTS="$WIRESHARK_APP_DIR/Contents" +if [ -f "$APP_CONTENTS/Frameworks/QtWidgets" -o -d "$APP_CONTENTS/Frameworks/QtWidgets.framework" ] ; then # Qt - if [ "$APPNAME" = "wireshark" ] ; then - APPNAME=Wireshark + if [ "$APP_NAME" = "wireshark" ] ; then + APP_NAME=Wireshark fi - exec "$WIRESHARK_APP_DIR/Contents/MacOS/$APPNAME" "$@" + exec "$APP_CONTENTS/MacOS/$APP_NAME" "$@" else # GTK+ - exec "$WIRESHARK_APP_DIR/Contents/Resources/bin/$APPNAME" "$@" + exec "$APP_CONTENTS/Resources/bin/$APP_NAME" "$@" fi |