ATM, we have this line for forward search (see 
Tools->Preferences->Output->General)

Pdf command: okular --unique "$$o#src:$$n $$f"

In this form it does not work, because the provided pdf-file-name does not 
contain path.
Okular is therefore searching in a wrong directory.
The attached 'okular.pl' works as a wrapper to okular, changing the working 
directory
to that of the supplied .tex file.

So, put the script somewhere in your path, make it executable and change the 
entry to
        okular.pl --unique "$$o#src:$$n $$f"

Of course, it would be better, if lyx would call okular with the corrected 
working directory.

        Kornel

Attachment: okular.pl
Description: Perl program

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to