]> git.lyx.org Git - features.git/commitdiff
configure.py: Add raster image viewers
authorGünter Milde <milde@lyx.org>
Thu, 12 Jan 2017 14:42:02 +0000 (15:42 +0100)
committerGünter Milde <milde@lyx.org>
Thu, 12 Jan 2017 15:08:03 +0000 (16:08 +0100)
Add common raster image viewing applications:

gwenview: KDE image viewer,
eog: Eye of Gnome, the Gnome default viewer,
xviewer:  Eye of Gnome successor for MATE and Cinnamon,
ristretto:  XFCE image viewer,
gpicview: LXDE image viewer,
lximage-qt: QXDE image viewer,

xdg-open:    generic file handler

The problem with xdg-open is, that it calls the browser (firefox) as fallback. This is not good for DVI and PDF, but still better than an editor (Gimp) for raster images.

Kee Gimp as last option for viewing, and default choice for editing.

lib/configure.py

index 8b502c5d9bacfdd76ea22efdbe4e0af4cd2415a1..2e28c070cd7b6ce9e99c987cf650f460846ff9d0 100644 (file)
@@ -621,10 +621,14 @@ def checkFormatEntries(dtl_tools):
 \Format tiff       tif     TIFF                   "" "%s"      "%s"    ""      "image/tiff"
 \Format xbm        xbm     XBM                    "" "%s"      "%s"    ""      "image/x-xbitmap"
 \Format xpm        xpm     XPM                    "" "%s"      "%s"    ""      "image/x-xpixmap"'''
-    path, iv = checkViewerNoRC('a raster image viewer', ['xv', 'kview', 'gimp-remote', 'gimp'], rc_entry = [imageformats])
-    path, ie = checkEditorNoRC('a raster image editor', ['gimp-remote', 'gimp'], rc_entry = [imageformats])
-    addToRC(imageformats %
-        (iv, ie, iv, ie, iv, ie, iv, ie, iv, ie, iv, ie, iv, ie, iv, ie, iv, ie, iv, ie) )
+    path, iv = checkViewerNoRC('a raster image viewer',
+        ['xv', 'gwenview', 'kview',
+         'eog', 'xviewer', 'ristretto', 'gpicview', 'lximage-qt',
+         'xdg-open', 'gimp-remote', 'gimp'],
+        rc_entry = [imageformats])
+    path, ie = checkEditorNoRC('a raster image editor',
+        ['gimp-remote', 'gimp'], rc_entry = [imageformats])
+    addToRC(imageformats % ((iv, ie)*10))
     #
     checkViewerEditor('a text editor',
         ['xemacs', 'gvim', 'kedit', 'kwrite', 'kate',