El 31.07.2017 a las 01:00, Paul A. Rubin escribió:
IIRC, the script cycles through the options and stops at the first
match. (This is true on all operating systems, not just Linux.) If, for
example, Evince precedes Xreader and the user has both installed, the
default will become Evince, even though Xreader is the, um, default
default (the one set by the system when Mint is installed).
Thanks for the explanation. So as long as the the LyX configure.py
script cannot determine what the current default PDF viewer is on a
system cases like yours cannot be avoided.
But maybe there is a way to determine this? Maybe our pyhtonists have an
idea?
There's one certainty, regardless of the OS: no matter which order you
specify, /someone/ is going to complain. ;-)
Yes. So to avoid a discussion about it I have undone the sort order
change in the attached updated patch.
regards Uwe
diff --git
"a/C:\\Users\\Usti\\AppData\\Local\\Temp\\TortoiseGit\\configure-accb484.000.py"
"b/D:\\LyXGit\\Master\\lib\\configure.py"
index 8e7fedbb5a..bd75f05c53 100644
---
"a/C:\\Users\\Usti\\AppData\\Local\\Temp\\TortoiseGit\\configure-accb484.000.py"
+++ "b/D:\\LyXGit\\Master\\lib\\configure.py"
@@ -675,9 +675,7 @@ def checkFormatEntries(dtl_tools):
#checkProg('a Postscript interpreter', ['gs'],
# rc_entry = [ r'\ps_command "%%"' ])
checkViewer('a Postscript previewer',
- ['kghostview', 'okular', 'qpdfview --unique',
- 'evince', 'xreader',
- 'gv', 'ghostview -swap', 'gsview64', 'gsview32'],
+ ['okular', 'qpdfview --unique', 'evince', 'xreader', 'gv',
'gsview64', 'gsview32'],
rc_entry = [r'''\Format eps eps EPS ""
"%%" "" "vector" "image/x-eps"
\Format eps2 eps "EPS (uncropped)" "" "%%" ""
"vector" ""
\Format eps3 eps "EPS (cropped)" "" "%%" ""
"document" ""
@@ -686,10 +684,8 @@ def checkFormatEntries(dtl_tools):
# maybe use "bestApplication()" from
https://github.com/jleclanche/python-mime
# the MIME type is set for pdf6, because that one needs to be
autodetectable by libmime
checkViewer('a PDF previewer',
- ['pdfview', 'kpdf', 'okular', 'qpdfview --unique',
- 'evince', 'xreader', 'kghostview', 'xpdf', 'SumatraPDF',
- 'acrobat', 'acroread', 'mupdf',
- 'gv', 'ghostview', 'AcroRd32', 'gsview64', 'gsview32'],
+ ['pdfview', 'okular', 'qpdfview --unique', 'evince',
'xreader', 'xpdf', 'SumatraPDF', 'acrobat', 'acroread',
+ 'masterpdfeditor4', 'mupdf', 'gv', 'AcroRd32', 'gsview64',
'gsview32'],
rc_entry = [r'''\Format pdf pdf "PDF (ps2pdf)" P
"%%" "" "document,vector,menu=export" ""
\Format pdf2 pdf "PDF (pdflatex)" F "%%" ""
"document,vector,menu=export" ""
\Format pdf3 pdf "PDF (dvipdfm)" m "%%" ""
"document,vector,menu=export" ""