#11742 correct pre 1.0 inkscape wrapper script path

This commit is contained in:
Stephan Witt 2020-05-17 15:24:15 +02:00
parent 4552d1c75f
commit aec981bf41

View File

@ -58,7 +58,7 @@ fi
# this failed... so try PATH expansion to start the inkscape shell wrapper # this failed... so try PATH expansion to start the inkscape shell wrapper
# Now continue the check with pre 1.0 inkscape application and the PATH # Now continue the check with pre 1.0 inkscape application and the PATH
IFS=":" read -ra DIRLIST <<< "${PATH}" IFS=":" read -ra DIRLIST <<< "${PATH}"
for BINDIR in "/Applications/Inkscape.app/Contents/Resources" "${DIRLIST[@]}" ; do for BINDIR in "/Applications/Inkscape.app/Contents/Resources/bin" "${DIRLIST[@]}" ; do
RESDIR=$(dirname "${BINDIR}") RESDIR=$(dirname "${BINDIR}")
if [ -f "${RESDIR}"/bin/inkscape -a -x "${RESDIR}"/bin/inkscape ]; then if [ -f "${RESDIR}"/bin/inkscape -a -x "${RESDIR}"/bin/inkscape ]; then
startinkscape "${RESDIR}"/bin/inkscape "$@" startinkscape "${RESDIR}"/bin/inkscape "$@"