aboutsummaryrefslogtreecommitdiffstats
path: root/packaging
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2018-05-01 21:00:26 -0700
committerGuy Harris <guy@alum.mit.edu>2018-05-02 04:01:04 +0000
commit737270dc8cb74100bcacc4ffd8c2d194529a20de (patch)
tree89fae1f2ad9f99cbfeed9cd8314eeba2f2d070fc /packaging
parent44537199a2cdd831f1d6ecab1231784c479b2bc8 (diff)
Fix the utility-launcher to look at the name it's run as.
If it's run as "tshark", it should run TShark, not Wireshark. Bug: 14643 Change-Id: I0d4e6fa64e42b7a2e2d4b89b53db62748b4f288d Reviewed-on: https://code.wireshark.org/review/27245 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'packaging')
-rwxr-xr-xpackaging/macosx/utility-launcher/wireshark6
1 files changed, 5 insertions, 1 deletions
diff --git a/packaging/macosx/utility-launcher/wireshark b/packaging/macosx/utility-launcher/wireshark
index 4844bedff6..90ca4a152d 100755
--- a/packaging/macosx/utility-launcher/wireshark
+++ b/packaging/macosx/utility-launcher/wireshark
@@ -16,4 +16,8 @@ if [ ! -d "$WIRESHARK_APP_DIR" ] ; then
exit 1
fi
-exec "$WIRESHARK_APP_DIR/Contents/MacOS/Wireshark" "$@"
+APP_NAME=`basename "$0"`
+if [ "$APP_NAME" = "wireshark" ] ; then
+ APP_NAME=Wireshark
+fi
+exec "$WIRESHARK_APP_DIR/Contents/MacOS/$APP_NAME" "$@"