Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 579418 - app-office/lyx-2.1.4: okular is opened always by default if present
Summary: app-office/lyx-2.1.4: okular is opened always by default if present
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Alexis Ballier
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-09 10:03 UTC by Pacho Ramos
Modified: 2018-04-02 20:58 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pacho Ramos gentoo-dev 2016-04-09 10:03:03 UTC
It seems that lyx relies on a hardcoded list of viewers and, then, once okular is installed, it's opened instead of the default viewer in my setup (evince).

I think it's because of this hardcoded values:
lib/configure.py:    checkViewer('a PDF previewer', ['pdfview', 'kpdf', 'okular', 'qpdfview --unique', 'evince', 'kghostview', 'xpdf', 'SumatraPDF', 'acrobat', 'acroread', 'mupdf', \


Maybe it could RDEPEND on xdg-utils and run "xdg-open" as a first option in that list to solve this

Thanks
Comment 1 pavel sanda 2016-04-13 17:10:55 UTC
> It seems that lyx relies on a hardcoded list of viewers

I just quickly checked what happens if I run default xdg-open on my system and got gimp for opening postscript (gv is ready on my system) and fbreader for html (firefox is ready on my system). 

Not saying it is xdg-open mistake, it's often using configs set up by default elsewhere, but the above does not speak strong for replacing the current lyx list of viewers, at least here.
Comment 2 Pacho Ramos gentoo-dev 2016-04-16 10:21:54 UTC
Umm, xdg-open works fine on my case (and it's also the "official" way of opening the default app under desktops honoring XDG specs...) opening the pdf viewer I have set at as default. What desktop are you running? Did you set a default viewer for PDFs?
Comment 3 pavel sanda 2016-04-17 05:56:52 UTC
> What desktop are you running?

enlightenment 1.0.17
Comment 4 Pacho Ramos gentoo-dev 2016-04-18 15:18:52 UTC
I don't know if enlightenment provides any app to configure the default apps... from commandline you should be able to run something like:

xdg-mime default evince.desktop application/pdf 

(or the app you want to use by default from all the apps blaming to support pdf)