aboutsummaryrefslogtreecommitdiffstats
path: root/packaging/macosx
diff options
context:
space:
mode:
authorstig <stig@f5534014-38df-0310-8fa8-9805f1628bb7>2008-10-28 21:53:39 +0000
committerstig <stig@f5534014-38df-0310-8fa8-9805f1628bb7>2008-10-28 21:53:39 +0000
commitbaa7a6181e1eda04a6db8f4c09d7400edb8c4615 (patch)
treeb26b3465b223bddea5f7d086caef9c96e7d59be0 /packaging/macosx
parentc5e01128110c44d44c4d4322f2a362d2441b7b16 (diff)
Fix bug 2844:
Make the OSX application launch when having space in the path. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@26612 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packaging/macosx')
-rwxr-xr-xpackaging/macosx/Resources/bin/wireshark2
-rwxr-xr-xpackaging/macosx/utility-launcher2
2 files changed, 2 insertions, 2 deletions
diff --git a/packaging/macosx/Resources/bin/wireshark b/packaging/macosx/Resources/bin/wireshark
index f8f0e2bc92..5b07b0f636 100755
--- a/packaging/macosx/Resources/bin/wireshark
+++ b/packaging/macosx/Resources/bin/wireshark
@@ -16,7 +16,7 @@ TOP="`dirname \"$CWD\"`"
# We might be exec'ed from wireshark, tshark, dumpcap, or any other binary
# from the Wireshark distribution.
# XXX - Should we verify that we have a valid name?
-APPNAME=`basename $0`
+APPNAME=`basename "$0"`
# Brutally add many things to the PATH. If the directories do not exist, they won't be used anyway.
# People should really use ~/.macosx/environment.plist to set environment variables as explained by Apple:
diff --git a/packaging/macosx/utility-launcher b/packaging/macosx/utility-launcher
index bff75b2da8..c42a64be87 100755
--- a/packaging/macosx/utility-launcher
+++ b/packaging/macosx/utility-launcher
@@ -14,6 +14,6 @@ if [ ! -d "$WIRESHARK_APP_DIR" ] ; then
exit 1
fi
-APPNAME=`basename $0`
+APPNAME=`basename "$0"`
exec "$WIRESHARK_APP_DIR/Contents/Resources/bin/$APPNAME" "$@"