On Fri, Dec 18, 2009 at 02:52:36PM -0500, Ben M. wrote: > On Fri, Dec 18, 2009 at 12:00 PM, Enrico Forestieri <for...@lyx.org> wrote: > > On Fri, Dec 18, 2009 at 04:47:59AM -0500, Ben M. wrote: > >> � � SumatraPDF $$i -inverse-search "cmd /C echo > >> LYXCMD:revdvi:server-goto-file-row:%f %l> \\.\pipe\lyxpipe.in & type > >> \\.\pipe\lyxpipe.out" > > > > This way, you have still to know the pipe name entered in preferences. > > A better approach would be converting to a python script the shell script > > development/tools/lyxeditor and extending it to also account for native > > Windows. Then, the pdflatex viewer could be simply set to > > � � SumatraPDF $$i -inverse-search "/path/to/lyxeditor.py %f %l" > > Are you saying that Python can determine the pipe name? Would I > somehow read the configuration file? Is there an existing script > where something similar is done?
Yep, as I said, in development/tools there is a shell script (lyxeditor) that parses the preferences file and lyxrc.dist for the lyxpipe definition. It works on Linux, MacOS, and Cygwin. It would be easy to extend it to also work on native Windows, but then you would need a Bourne-like shell to execute it. So, it would be better to convert it to Python. This should be a rather simple task. -- Enrico