Use the application id of lyx to address the running LyX instance

This commit is contained in:
Stephan Witt 2020-02-14 12:06:08 +01:00
parent 983da7d6de
commit ab877352e7

View File

@ -90,7 +90,7 @@ if [ -n "$LYXPIPE" -a -p "$LYXPIPE".in ]; then
while read line ; do while read line ; do
echo LyX said: $line echo LyX said: $line
done < "${LYXPIPE}".out || { echo "Cannot read from lyxpipe." ; exit 2 ; } 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 else
echo "Our best guess sets lyxpipe as ${LYXPIPE}" echo "Our best guess sets lyxpipe as ${LYXPIPE}"
echo "But the lyxpipe could not be found." echo "But the lyxpipe could not be found."