[LyX/master] Use the application id of lyx to address the running LyX instance

Stephan Witt switt at lyx.org
Fri Feb 14 10:47:41 UTC 2020


commit ab877352e74455278da372d97672a7705ca2fd29
Author: Stephan Witt <switt at lyx.org>
Date:   Fri Feb 14 12:06:08 2020 +0100

    Use the application id of lyx to address the running LyX instance
---
 development/MacOSX/lyxeditor |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/development/MacOSX/lyxeditor b/development/MacOSX/lyxeditor
index 670dea2..d24373c 100755
--- a/development/MacOSX/lyxeditor
+++ b/development/MacOSX/lyxeditor
@@ -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."


More information about the lyx-cvs mailing list