|
|
2ca14cc |
diff -ur a/lib/configure.py b/lib/configure.py
|
|
|
2ca14cc |
--- a/lib/configure.py 2016-10-10 16:42:40.000000000 +0100
|
|
|
2ca14cc |
+++ b/lib/configure.py 2016-10-12 11:35:40.602241885 +0100
|
|
|
2ca14cc |
@@ -595,7 +595,7 @@
|
|
|
a9336e7 |
\Format tiff tif TIFF "" "%s" "%s" "" "image/tiff"
|
|
|
a9336e7 |
\Format xbm xbm XBM "" "%s" "%s" "" "image/x-xbitmap"
|
|
|
a9336e7 |
\Format xpm xpm XPM "" "%s" "%s" "" "image/x-xpixmap"'''
|
|
|
a9336e7 |
- path, iv = checkViewerNoRC('a raster image viewer', ['xv', 'kview', 'gimp-remote', 'gimp'], rc_entry = [imageformats])
|
|
|
a9336e7 |
+ path, iv = checkViewerNoRC('a raster image viewer', ['xdg-open', 'xv', 'kview', 'gimp-remote', 'gimp'], rc_entry = [imageformats])
|
|
|
a9336e7 |
path, ie = checkEditorNoRC('a raster image editor', ['gimp-remote', 'gimp'], rc_entry = [imageformats])
|
|
|
a9336e7 |
addToRC(imageformats % \
|
|
|
a9336e7 |
(iv, ie, iv, ie, iv, ie, iv, ie, iv, ie, iv, ie, iv, ie, iv, ie, iv, ie, iv, ie) )
|
|
|
2ca14cc |
@@ -636,7 +636,7 @@
|
|
|
2ca14cc |
\Format html_table html "HTML Table (for spreadsheets)" "" "" "%%" "document" "text/html"
|
|
|
bc87917 |
\Format oocalc ods "OpenDocument spreadsheet" "" "" "%%" "document" "application/vnd.oasis.opendocument.spreadsheet"'''])
|
|
|
a9336e7 |
#
|
|
|
a9336e7 |
- checkViewer('an HTML previewer', ['firefox', 'mozilla file://$$p$$i', 'netscape'],
|
|
|
a9336e7 |
+ checkViewer('an HTML previewer', ['xdg-open', 'firefox', 'mozilla file://$$p$$i', 'netscape'],
|
|
|
a9336e7 |
rc_entry = [r'\Format xhtml xhtml "LyXHTML" y "%%" "" "document,menu=export" "application/xhtml+xml"'])
|
|
|
a9336e7 |
#
|
|
|
a9336e7 |
checkEditor('a BibTeX editor', ['jabref', 'JabRef', \
|
|
|
2ca14cc |
@@ -649,14 +649,14 @@
|
|
|
a9336e7 |
#
|
|
|
a9336e7 |
#checkProg('a Postscript interpreter', ['gs'],
|
|
|
a9336e7 |
# rc_entry = [ r'\ps_command "%%"' ])
|
|
|
89b98de |
- checkViewer('a Postscript previewer', ['kghostview', 'okular', 'qpdfview --unique', 'evince', 'gv', 'ghostview -swap', 'gsview64', 'gsview32'],
|
|
|
89b98de |
+ checkViewer('a Postscript previewer', ['xdg-open', 'kghostview', 'okular', 'qpdfview --unique', 'evince', 'gv', 'ghostview -swap', 'gsview64', 'gsview32'],
|
|
|
a9336e7 |
rc_entry = [r'''\Format eps eps EPS "" "%%" "" "vector" "image/x-eps"
|
|
|
a9336e7 |
\Format eps2 eps "EPS (uncropped)" "" "%%" "" "vector" ""
|
|
|
39775d0 |
\Format eps3 eps "EPS (cropped)" "" "%%" "" "document" ""
|
|
|
a9336e7 |
\Format ps ps Postscript t "%%" "" "document,vector,menu=export" "application/postscript"'''])
|
|
|
a9336e7 |
# for xdg-open issues look here: http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg151818.html
|
|
|
a9336e7 |
# the MIME type is set for pdf6, because that one needs to be autodetectable by libmime
|
|
|
89b98de |
- checkViewer('a PDF previewer', ['pdfview', 'kpdf', 'okular', 'qpdfview --unique', 'evince', 'kghostview', 'xpdf', 'SumatraPDF', 'acrobat', 'acroread', 'mupdf', \
|
|
|
89b98de |
+ checkViewer('a PDF previewer', ['xdg-open', 'pdfview', 'kpdf', 'okular', 'qpdfview --unique', 'evince', 'kghostview', 'xpdf', 'SumatraPDF', 'acrobat', 'acroread', 'mupdf', \
|
|
|
89b98de |
'gv', 'ghostview', 'AcroRd32', 'gsview64', 'gsview32'],
|
|
|
a9336e7 |
rc_entry = [r'''\Format pdf pdf "PDF (ps2pdf)" P "%%" "" "document,vector,menu=export" ""
|
|
|
a9336e7 |
\Format pdf2 pdf "PDF (pdflatex)" F "%%" "" "document,vector,menu=export" ""
|
|
|
2ca14cc |
@@ -667,14 +667,14 @@
|
|
|
39775d0 |
\Format pdf7 pdf "PDF (cropped)" "" "%%" "" "document,vector" ""
|
|
|
39775d0 |
\Format pdf8 pdf "PDF (lower resolution)" "" "%%" "" "document,vector" ""'''])
|
|
|
a9336e7 |
#
|
|
|
a9336e7 |
- checkViewer('a DVI previewer', ['xdvi', 'kdvi', 'okular', 'yap', 'dviout -Set=!m'],
|
|
|
a9336e7 |
+ checkViewer('a DVI previewer', ['xdg-open', 'xdvi', 'kdvi', 'okular', 'yap', 'dviout -Set=!m'],
|
|
|
a9336e7 |
rc_entry = [r'''\Format dvi dvi DVI D "%%" "" "document,vector,menu=export" "application/x-dvi"
|
|
|
a9336e7 |
\Format dvi3 dvi "DVI (LuaTeX)" V "%%" "" "document,vector,menu=export" ""'''])
|
|
|
a9336e7 |
if dtl_tools:
|
|
|
a9336e7 |
# Windows only: DraftDVI
|
|
|
a9336e7 |
addToRC(r'\Format dvi2 dvi DraftDVI "" "" "" "vector" ""')
|
|
|
a9336e7 |
#
|
|
|
a9336e7 |
- checkViewer('an HTML previewer', ['firefox', 'mozilla file://$$p$$i', 'netscape'],
|
|
|
a9336e7 |
+ checkViewer('an HTML previewer', ['xdg-open', 'firefox', 'mozilla file://$$p$$i', 'netscape'],
|
|
|
a9336e7 |
rc_entry = [r'\Format html "html, htm" HTML H "%%" "" "document,menu=export" "text/html"'])
|
|
|
a9336e7 |
#
|
|
|
a9336e7 |
checkViewerEditor('Noteedit', ['noteedit'],
|