Code

* packaging/macosx/Resources/openDoc: Fix a bug with the path being set
authormjwybrow <mjwybrow@users.sourceforge.net>
Wed, 12 Mar 2008 23:37:45 +0000 (23:37 +0000)
committermjwybrow <mjwybrow@users.sourceforge.net>
Wed, 12 Mar 2008 23:37:45 +0000 (23:37 +0000)
    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.

packaging/macosx/Resources/openDoc

index 9b1d7718c795a1df668b85afe8ded8ee31816719..fd37dd128670ef1d9b3c5fdec0176294a430313c 100755 (executable)
@@ -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" "$@"