if [ -n "$LYXPIPE" -a -p "$LYXPIPE".in ]; then
break
fi
+ # now check for default pipe location
+ if [ -p "${ABS_USER_LYXDIR}"/.lyxpipe.in ]; then
+ LYXPIPE="${ABS_USER_LYXDIR}/.lyxpipe"
+ break
+ fi
done
# echo "preferences file sets lyxpipe as ${LYXPIPE}"
}
if [ -n "$LYXPIPE" -a -p "$LYXPIPE".in ]; then
- file=$(echo "$1" | sed 's|^/private||')
-
- MAC_LYXPIPE_CONTENTS="LYXCMD:macdvix:server-goto-file-row:$file $2"
+ MAC_LYXPIPE_CONTENTS="LYXCMD:macdvix:server-goto-file-row:$1 $2"
# echo "$MAC_LYXPIPE_CONTENTS"
echo "$MAC_LYXPIPE_CONTENTS" > "${LYXPIPE}".in || { echo "Cannot write to lyxpipe." ; exit 2 ; }
while read line ; do