aboutsummaryrefslogtreecommitdiffstats
path: root/packaging/macosx
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2008-10-28 21:53:39 +0000
committerStig Bjørlykke <stig@bjorlykke.org>2008-10-28 21:53:39 +0000
commited4c2f893d7f6ca0dba906354327bfce86b25ef8 (patch)
treeb26b3465b223bddea5f7d086caef9c96e7d59be0 /packaging/macosx
parent209c8de4e53bbe9e40a71cb405dd25e7151f5bd1 (diff)
Fix bug 2844:
Make the OSX application launch when having space in the path. svn path=/trunk/; revision=26612
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" "$@"