From: mjwybrow Date: Wed, 12 Mar 2008 23:37:45 +0000 (+0000) Subject: * packaging/macosx/Resources/openDoc: Fix a bug with the path being set X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e55c53c6fa62ebd000a000ad73e3faa558716e10;p=inkscape.git * packaging/macosx/Resources/openDoc: Fix a bug with the path being set incorrectly when the user opens a second instance of Inkscape by dropping an SVG file on the Dock icon while Inkscape.app is already running. --- diff --git a/packaging/macosx/Resources/openDoc b/packaging/macosx/Resources/openDoc index 9b1d7718c..fd37dd128 100755 --- a/packaging/macosx/Resources/openDoc +++ b/packaging/macosx/Resources/openDoc @@ -12,6 +12,6 @@ if [[ $VERSION -le 4 ]]; then export "DISPLAY=`cat /tmp/display.$UID`" fi -BASE="`echo "$0" | sed -e 's/\/[A-Za-z]*.app\/Contents\/Resources\/openDoc/\//'`" +BASE="`echo "$0" | sed -e 's/\/Contents\/Resources\/openDoc/\//'`" cd "$BASE" exec "$CWD/bin/inkscape" "$@"