mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
configure.py: Add raster image viewers
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.
This commit is contained in:
parent
8e65250110
commit
bd3e6033db
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user