From 737270dc8cb74100bcacc4ffd8c2d194529a20de Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Tue, 1 May 2018 21:00:26 -0700 Subject: [PATCH] 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 --- packaging/macosx/utility-launcher/wireshark | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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" "$@"