On Sun, Apr 30, 2006 at 02:55:18PM -0500, Bo Peng wrote: > > I tested this last patch on Cygwin and it does not work well. > > Specifically I have to delete <userdir>/lyxrc.defaults otherwise I > > only get "PDF (dvipdfm)" and "PDF (pdflatex)" in the View menu. > > I finally have my mingw+lyx+qt4 set up and can test this patch. (Poor > ghostview gets installed/uninstalled five times) Attached is a > modified patch that should work. The problem with the previous patch > is that the function does not exit after successful auto view so auto > file is called as a real command. > > Please test.
It works! Only a minor glitch: I was missing the "OpenOffice.Org Writer" entry in the View menu, so I added "auto" as a viewer in preferences for this format. I obtained an entry in the View menu but after choosing this entry a dialog popped out saying that it failed. However, after quitting and restarting LyX it worked. So it seems that "auto" is only recognized on startup and not immediately after adding an entry in preferences. -- Enrico