commit 615afdc5a3533973b86b1c4a4d0b4202ab1afca5
Author: Stephan Witt <[email protected]>
Date:   Thu Sep 14 09:00:16 2017 +0200

    #10762 don't hard-code the location of LyX bundle - use script path name 
for lyxrc.dist lookup
    
    (cherry picked from commit 8cbed5ef4ac4981db0f232767d2f8b2c24b5738d)
---
 development/MacOSX/lyxeditor |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/development/MacOSX/lyxeditor b/development/MacOSX/lyxeditor
index aeb6370..476ffc0 100755
--- a/development/MacOSX/lyxeditor
+++ b/development/MacOSX/lyxeditor
@@ -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

Reply via email to