summaryrefslogtreecommitdiff
path: root/packaging/macosx/utility-launcher
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2016-12-15 17:48:59 -0800
committerGuy Harris <guy@alum.mit.edu>2016-12-16 01:49:43 +0000
commitd706f9c221e85992f7011baed53f5b31b7109493 (patch)
treef2cd39bf00a9d33ed061dc8a0aa6b05f3e3dfe65 /packaging/macosx/utility-launcher
parent8234de535022a699f6c2ac5f870cad6cd7439060 (diff)
downloadwireshark-d706f9c221e85992f7011baed53f5b31b7109493.tar.gz
Add symlinks to Wireshark binaries in Resources/bin, and point there.
That way, $PATH points to .../Wireshark.app/Contents/Resources/bin, so the man command will look in .../Wireshark.app/Contents/Resources/share/man. This also may obviate the need to install the wrapper scripts in /usr/local/bin, although those scripts obviate the need to re-set PATH after installing Wireshark. Change-Id: I7202b5a0fe5d2b90c956dc0db2af073f6c08b00d Reviewed-on: https://code.wireshark.org/review/19296 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'packaging/macosx/utility-launcher')
-rwxr-xr-xpackaging/macosx/utility-launcher/wireshark12
1 files changed, 1 insertions, 11 deletions
diff --git a/packaging/macosx/utility-launcher/wireshark b/packaging/macosx/utility-launcher/wireshark
index e412a5024c..383730f493 100755
--- a/packaging/macosx/utility-launcher/wireshark
+++ b/packaging/macosx/utility-launcher/wireshark
@@ -18,14 +18,4 @@ fi
APP_NAME=`basename "$0"`
-APP_CONTENTS="$WIRESHARK_APP_DIR/Contents"
-if [ -f "$APP_CONTENTS/Frameworks/QtWidgets" -o -d "$APP_CONTENTS/Frameworks/QtWidgets.framework" ] ; then
- # Qt
- if [ "$APP_NAME" = "wireshark" ] ; then
- APP_NAME=Wireshark
- fi
- exec "$APP_CONTENTS/MacOS/$APP_NAME" "$@"
-else
- # GTK+
- exec "$APP_CONTENTS/Resources/bin/$APP_NAME" "$@"
-fi
+exec "$WIRESHARK_APP_DIR/Contents/Resources/bin/$APP_NAME" "$@"