Re: Evince as default viewer

2017-09-04 Thread Julio Rojas
Done. Thnx!

-
Julio Rojas
jcredbe...@gmail.com

On Mon, Aug 28, 2017 at 5:24 PM, Paul A. Rubin  wrote:

> On 08/28/2017 02:55 PM, Julio Rojas wrote:
>
> Sorry for not replying, but was kind of busy.
>
> Attached you can see both the lyxrc.default file and the preferences menu.
> In the first one, qpdfview is setup by default, while on the second there
> is no way to setup evince as default.
>
> As I have read in the thread, the advice is to edit the lyxrc.default,
> changing qpdfview with evince. Nevertheless, this solution does not allow
> me to understand why this happened and why it cannot be changed from the
> preferences menu.
>
> I will wait for your comments before proceeding.
>
> Regards,
>
> -
> Julio Rojas
> jcredbe...@gmail.com
>
> Julio:
>
> The answer to the second question is that you are looking at the wrong
> file format in the preferences menu. This is showing "*LaTeX*
> (pdflatex)", which is the .tex source code file that will be compiled into
> your document. Since LaTeX source files are plain text, the menu is showing
> the installed programs suitable for viewing text files.
>
> If you switch the Format entry to "*PDF* (pdflatex)", the Viewer menu
> should show you appropriate programs for viewing PDF files (hopefully
> including Evince).
>
> Paul
>
>


Re: Evince as default viewer

2017-08-28 Thread Paul A. Rubin

On 08/28/2017 02:55 PM, Julio Rojas wrote:

Sorry for not replying, but was kind of busy.

Attached you can see both the lyxrc.default file and the preferences 
menu. In the first one, qpdfview is setup by default, while on the 
second there is no way to setup evince as default.


As I have read in the thread, the advice is to edit the lyxrc.default, 
changing qpdfview with evince. Nevertheless, this solution does not 
allow me to understand why this happened and why it cannot be changed 
from the preferences menu.


I will wait for your comments before proceeding.

Regards,

-
Julio Rojas
jcredbe...@gmail.com 


Julio:

The answer to the second question is that you are looking at the wrong 
file format in the preferences menu. This is showing "*LaTeX* 
(pdflatex)", which is the .tex source code file that will be compiled 
into your document. Since LaTeX source files are plain text, the menu is 
showing the installed programs suitable for viewing text files.


If you switch the Format entry to "*PDF* (pdflatex)", the Viewer menu 
should show you appropriate programs for viewing PDF files (hopefully 
including Evince).


Paul



Re: Evince as default viewer

2017-08-26 Thread Kornel Benko
Am Freitag, 25. August 2017 um 19:48:06, schrieb Scott Kostyshak 

> On Fri, Aug 25, 2017 at 07:44:09PM -0400, Paul A. Rubin wrote:
> > On 08/25/2017 07:29 PM, Scott Kostyshak wrote:
> > > On Fri, Aug 25, 2017 at 02:12:47PM -0400, Paul A. Rubin wrote:
> > > 
> > > > Note that, with either approach, if you reinstall qpdfview, the next 
> > > > time
> > > > you run reconfigure it's liable to break again.
> > > If you set the viewer in preferences, then I don't think it should
> > > change after running reconfigure.
> > > 
> > > Scott
> > You're probably right about that, give or take installing a new version of
> > LyX. When I upgraded LyX to 2.2.3, I think it thunked my viewer preferences,
> > but that was probably a one-off (the business with Mint changing the default
> > text editor, PDF viewer, image viewer and something else I've forgotten
> > now).
> 
> Ah yes that could happen. If you can ever reproduce an issue where a
> newer version of LyX thunks something, then we would like to fix that.
> I remember seeing a couple of reports about that on Ubuntu. But it is
> hard to remember to back up your user directory before an upgrade, so
> it's hard to reproduce.
> 
> Scott

It can happen if using versioned userdir. (e.g. transition from ~/.lyx2.2 to 
~/.lyx2.3).
In that case you may want to copy ~/.lyx2.2/preferences.

Kornel

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


Re: Evince as default viewer

2017-08-25 Thread Scott Kostyshak
On Fri, Aug 25, 2017 at 07:44:09PM -0400, Paul A. Rubin wrote:
> On 08/25/2017 07:29 PM, Scott Kostyshak wrote:
> > On Fri, Aug 25, 2017 at 02:12:47PM -0400, Paul A. Rubin wrote:
> > 
> > > Note that, with either approach, if you reinstall qpdfview, the next time
> > > you run reconfigure it's liable to break again.
> > If you set the viewer in preferences, then I don't think it should
> > change after running reconfigure.
> > 
> > Scott
> You're probably right about that, give or take installing a new version of
> LyX. When I upgraded LyX to 2.2.3, I think it thunked my viewer preferences,
> but that was probably a one-off (the business with Mint changing the default
> text editor, PDF viewer, image viewer and something else I've forgotten
> now).

Ah yes that could happen. If you can ever reproduce an issue where a
newer version of LyX thunks something, then we would like to fix that.
I remember seeing a couple of reports about that on Ubuntu. But it is
hard to remember to back up your user directory before an upgrade, so
it's hard to reproduce.

Scott


signature.asc
Description: PGP signature


Re: Evince as default viewer

2017-08-25 Thread Paul A. Rubin

On 08/25/2017 07:29 PM, Scott Kostyshak wrote:

On Fri, Aug 25, 2017 at 02:12:47PM -0400, Paul A. Rubin wrote:


Note that, with either approach, if you reinstall qpdfview, the next time
you run reconfigure it's liable to break again.

If you set the viewer in preferences, then I don't think it should
change after running reconfigure.

Scott
You're probably right about that, give or take installing a new version 
of LyX. When I upgraded LyX to 2.2.3, I think it thunked my viewer 
preferences, but that was probably a one-off (the business with Mint 
changing the default text editor, PDF viewer, image viewer and something 
else I've forgotten now).




Re: Evince as default viewer

2017-08-25 Thread Scott Kostyshak
On Fri, Aug 25, 2017 at 02:12:47PM -0400, Paul A. Rubin wrote:

> Note that, with either approach, if you reinstall qpdfview, the next time
> you run reconfigure it's liable to break again.

If you set the viewer in preferences, then I don't think it should
change after running reconfigure.

Scott


signature.asc
Description: PGP signature


Re: Evince as default viewer

2017-08-25 Thread Paul A. Rubin

On 08/25/2017 12:00 PM, Julio Rojas wrote:

Dear all,

I have installed qpdfview and although system-wide Evince is the 
default PDF viewer, Lyx preferes qpdfview. Is there a way to tell Lyx 
to select Evince? I have uninstalled qpdfview and the pdflatex option 
is grayed out.


Thanks in advance!
-
Julio Rojas
jcredbe...@gmail.com 
Matej's suggestion definitely works, with the caveat that you need to do 
it for each type of PDF output you use. If you export to multiple PDF 
formats (dvipdfm, pdflatex, ...), it might be easier to open 
~/.lyx/lyxrc.defaults in a text editor and do a global 
search-and-replace, changing "qpdfview" to "evince" in all lines 
starting "\viewer_alternatives pdf".


Note that, with either approach, if you reinstall qpdfview, the next 
time you run reconfigure it's liable to break again.


Paul



Re: Evince as default viewer

2017-08-25 Thread Matej Cepl
On 25/08/17 18:00, Julio Rojas wrote:
> I have installed qpdfview and although system-wide Evince is the default
> PDF viewer, Lyx preferes qpdfview. Is there a way to tell Lyx to select
> Evince? I have uninstalled qpdfview and the pdflatex option is grayed out.

Tools / Preferences / File Handling / File Formats / Viewer ?

Matěj

-- 
https://matej.ceplovi.cz/blog/, Jabber: mc...@ceplovi.cz
GPG Finger: 3C76 A027 CA45 AD70 98B5  BC1D 7920 5802 880B C9D8

I am a Roman Catholic, so that I do not expect `history' to be
anything but a `long defeat' -- though it contains (and in
a legend may contain more clearly and movingly) some samples or
glimpses of final victory.
  -- J.R.R. Tolkien



signature.asc
Description: OpenPGP digital signature


Evince as default viewer

2017-08-25 Thread Julio Rojas
Dear all,

I have installed qpdfview and although system-wide Evince is the default
PDF viewer, Lyx preferes qpdfview. Is there a way to tell Lyx to select
Evince? I have uninstalled qpdfview and the pdflatex option is grayed out.

Thanks in advance!
-
Julio Rojas
jcredbe...@gmail.com