]> git.lyx.org Git - features.git/commitdiff
Use the application id of lyx to address the running LyX instance
authorStephan Witt <switt@lyx.org>
Fri, 14 Feb 2020 11:06:08 +0000 (12:06 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 18 Jun 2020 13:48:52 +0000 (15:48 +0200)
development/MacOSX/lyxeditor

index 670dea2228434cade48fbd88a3a7faf644737a1d..d24373c7b894b4aa60eec4bb837e8f46e6b2fedd 100755 (executable)
@@ -90,7 +90,7 @@ if [ -n "$LYXPIPE" -a -p "$LYXPIPE".in ]; then
        while read line ; do
                echo LyX said: $line
        done < "${LYXPIPE}".out || { echo "Cannot read from lyxpipe." ; exit 2 ; }
-       test -x /usr/bin/osascript && /usr/bin/osascript -e 'tell application "LyX" to activate'
+       test -x /usr/bin/osascript && /usr/bin/osascript -e 'tell application id "org.lyx.lyx" to activate'
 else
        echo "Our best guess sets lyxpipe as ${LYXPIPE}"
        echo "But the lyxpipe could not be found."