Re: output PDF to evince rather than okular

2015-12-01 Thread Scott Kostyshak
On Tue, Dec 01, 2015 at 02:12:49PM -0800, Joel VanderWerf wrote:
> I upgraded from 2.1.4 to 2.2.0alpha2 (on ubuntu 15.10), and the PDF output
> program changed from evince to okular.
> 
> In 2.1.4, the PDF output used evince (which I prefer). And when I run 2.1.4
> now, it *still* uses evince (so this is probably not due to a systemwide
> change).
> 
> On 2.2.0alpha2, the PDF output uses okular.

Not surprising. This is likely due to different preferences. Because we
wanted the 2.2.0alpha2 installation to be completely different, it is
good that it is not using the preferences from before.

You can try copying manually the preferences file used for 2.1.4. To see
where your user directory is, go to Help > About. Copy the file named
"preferences" from your 2.1.4 location to the 2.2.0alpha2 location.

> I tried to adjust Prefs/Output/PDF Command, but cannot seem to change the
> program used for PDFs.
> 
> At first, the drop-down setting   was blank (this was true in my settings 
> for
> both LyX versions). After selecting

Can you please send a screenshot of where it is blank? I would like to
debug this. I cannot reproduce-- for me, both Evince and Okular are
shown.

> (ps. I *love* the improvements to instant preview in 2.2.0 -- it almost
> means I don't need a PDF viewer.)

Thanks for the positive feedback!

Scott


signature.asc
Description: PGP signature


Re: output PDF to evince rather than okular

2015-12-01 Thread Joel VanderWerf

On 12/01/2015 03:23 PM, Scott Kostyshak wrote:

On Tue, Dec 01, 2015 at 02:12:49PM -0800, Joel VanderWerf wrote:

I upgraded from 2.1.4 to 2.2.0alpha2 (on ubuntu 15.10), and the PDF output
program changed from evince to okular.

In 2.1.4, the PDF output used evince (which I prefer). And when I run 2.1.4
now, it *still* uses evince (so this is probably not due to a systemwide
change).

On 2.2.0alpha2, the PDF output uses okular.


Not surprising. This is likely due to different preferences. Because we
wanted the 2.2.0alpha2 installation to be completely different, it is
good that it is not using the preferences from before.

You can try copying manually the preferences file used for 2.1.4. To see
where your user directory is, go to Help > About. Copy the file named
"preferences" from your 2.1.4 location to the 2.2.0alpha2 location.


One of the first things I did after upgrading was to copy both of

  ~/.lyx/preferences
  ~/.lyx/bind/user.bind

into the right places in .lyx2.2pre.

Also, apparently the setting I have been tweaking is 
"forward_search_pdf", which may be different from the setting that 
Ctrl-R uses to launch the PDF viewer? I can't find anywhere else to 
choose between okular and evince, though.



I tried to adjust Prefs/Output/PDF Command, but cannot seem to change the
program used for PDFs.

At first, the drop-down setting was blank (this was true in my settings for
both LyX versions). After selecting


Can you please send a screenshot of where it is blank? I would like to
debug this. I cannot reproduce-- for me, both Evince and Okular are
shown.


Sorry, I was unclear. The *selected* value is blank. The pop-up has 
several choices. (And I can select them, and the selection persists.) 
See attached.


However, changing the selection (and pressing Apply each time) has no 
effect. Ctrl-R always runs Okular (in 2.2pre). Maybe this is my 
confusion about forward_search_pdf.


I just noticed that in lyx 2.1.4, the PDF program that Ctrl-R runs is 
always evince, even if I selected okular. Hm. Perhaps there is some 
error, and 2.2 falls back to okular, but 2.1 falls back to evince? (Both 
okular and evince are in /usr/bin, so it's not a PATH issue.)




Re: output PDF to evince rather than okular

2015-12-01 Thread Scott Kostyshak
On Tue, Dec 01, 2015 at 04:50:10PM -0800, Joel VanderWerf wrote:
> On 12/01/2015 03:23 PM, Scott Kostyshak wrote:

> >You can try copying manually the preferences file used for 2.1.4. To see
> >where your user directory is, go to Help > About. Copy the file named
> >"preferences" from your 2.1.4 location to the 2.2.0alpha2 location.
> 
> One of the first things I did after upgrading was to copy both of
> 
>   ~/.lyx/preferences
>   ~/.lyx/bind/user.bind
> 
> into the right places in .lyx2.2pre.
> 
> Also, apparently the setting I have been tweaking is "forward_search_pdf",
> which may be different from the setting that Ctrl-R uses to launch the PDF
> viewer? I can't find anywhere else to choose between okular and evince,
> though.
> 
> >>I tried to adjust Prefs/Output/PDF Command, but cannot seem to change the
> >>program used for PDFs.
> >>
> >>At first, the drop-down setting was blank (this was true in my settings 
> >>for
> >>both LyX versions). After selecting
> >
> >Can you please send a screenshot of where it is blank? I would like to
> >debug this. I cannot reproduce-- for me, both Evince and Okular are
> >shown.
> 
> Sorry, I was unclear. The *selected* value is blank. The pop-up has several
> choices. (And I can select them, and the selection persists.) See attached.

I see.

> However, changing the selection (and pressing Apply each time) has no
> effect. Ctrl-R always runs Okular (in 2.2pre). Maybe this is my confusion
> about forward_search_pdf.

I don't know anything about forward search.

> I just noticed that in lyx 2.1.4, the PDF program that Ctrl-R runs is always
> evince, even if I selected okular. Hm. Perhaps there is some error, and 2.2
> falls back to okular, but 2.1 falls back to evince? (Both okular and evince
> are in /usr/bin, so it's not a PATH issue.)

I don't know. I wonder what changed between 2.1.4 and 2.2.0. If you
wanted you could try 2.1.4's configure.py with 2.2.0. I do not recommend
this at all. My guess is something would go quite wrong.
Another thing to try would be to do a git bisect. You would need to
compile LyX though.

Or you can wait a few days and see if someone responds with a better
idea.

Scott


signature.asc
Description: PGP signature