]> git.lyx.org Git - features.git/commitdiff
#10762 don't hard-code the location of LyX bundle - use script path name for lyxrc...
authorStephan Witt <switt@lyx.org>
Thu, 14 Sep 2017 07:00:16 +0000 (09:00 +0200)
committerStephan Witt <switt@lyx.org>
Thu, 14 Sep 2017 09:44:15 +0000 (11:44 +0200)
(cherry picked from commit 8cbed5ef4ac4981db0f232767d2f8b2c24b5738d)

development/MacOSX/lyxeditor

index aeb6370dfd7732010b5a73148da2fe9f2f1a1a09..476ffc07555963aed4976e41bb45a5f80cf26b46 100755 (executable)
@@ -64,7 +64,8 @@ done
 # echo "preferences file sets lyxpipe as ${LYXPIPE}"
 
 test -z "${LYXPIPE}" && {
-       ABS_SYSTEM_LYXDIR='/Applications/LyX.app/Contents/Resources'
+       ABS_SYSTEM_LYXDIR=$(dirname "$0")
+       ABS_SYSTEM_LYXDIR=$(dirname "${ABS_SYSTEM_LYXDIR}")"/Resources"
        test -d "${ABS_SYSTEM_LYXDIR}" || {
                echo "Failed to find ABS_SYSTEM_LYXDIR: ${ABS_SYSTEM_LYXDIR}" >&2
                exit 1