[gedit] Guard against spaces in path in osx launcher script
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gedit] Guard against spaces in path in osx launcher script
- Date: Sat, 28 Nov 2009 18:21:43 +0000 (UTC)
commit 35b9f703aa55818b2f5cdf16272c93903fd1ad4c
Author: Jesse van den Kieboom <jesse icecrew nl>
Date: Sat Nov 28 19:20:35 2009 +0100
Guard against spaces in path in osx launcher script
osx/launcher.sh | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/osx/launcher.sh b/osx/launcher.sh
index b2ca694..18f0f3b 100755
--- a/osx/launcher.sh
+++ b/osx/launcher.sh
@@ -11,7 +11,9 @@ else
fi
name=$(basename "$0")
-bundle=$(cd $(dirname "$0")/../../ && pwd)
+dirn=$(dirname "$0")
+
+bundle=$(cd "$dirn/../../" && pwd)
bundle_contents="$bundle"/Contents
bundle_res="$bundle_contents"/Resources
bundle_lib="$bundle_res"/lib
@@ -51,6 +53,6 @@ if [ x`echo "x$1" | sed -e "s/^x-psn_.*//"` == x ]; then
fi
# Start gconf first
-$bundle_res/libexec/gconfd-2 &
+"$bundle_res/libexec/gconfd-2" &
$EXEC "$bundle_contents/MacOS/$name-bin" $* $EXTRA_ARGS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]