X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=lib%2Fconfigure.py;h=3c29dc2271fead1b8dc267fdac89514439f50894;hb=4fddff272fcc76c45a3ecd7259e353bb3242e45c;hp=53c0c47d7a3b9498f398b657c10fbaf5890ae20c;hpb=3ccb9d8af9225853cc87142fe7472dcd079c4a27;p=lyx.git diff --git a/lib/configure.py b/lib/configure.py index 53c0c47d7a..3c29dc2271 100644 --- a/lib/configure.py +++ b/lib/configure.py @@ -238,8 +238,8 @@ def checkFormatEntries(dtl_tools): checkViewer('a FEN viewer and editor', ['xboard -lpf $$i -mode EditPosition'], rc_entry = [r'\Format fen fen FEN "" "%%" "%%" ""']) # - path, iv = checkViewer('a raster image viewer', ['xv', 'kview', 'gimp']) - path, ie = checkViewer('a raster image editor', ['gimp']) + path, iv = checkViewer('a raster image viewer', ['xv', 'kview', 'gimp-remote', 'gimp']) + path, ie = checkViewer('a raster image editor', ['gimp-remote', 'gimp']) addToRC(r'''\Format bmp bmp BMP "" "%s" "%s" "" \Format gif gif GIF "" "%s" "%s" "" \Format jpg jpg JPEG "" "%s" "%s" "" @@ -289,7 +289,7 @@ def checkFormatEntries(dtl_tools): # Windows only: DraftDVI addToRC(r'\Format dvi2 dvi DraftDVI "" "" "document,vector"') # - checkViewer('an HTML previewer', ['mozilla file://$$p$$i', 'netscape'], + checkViewer('an HTML previewer', ['firefox', 'mozilla file://$$p$$i', 'netscape'], rc_entry = [r'\Format html html HTML H "%%" "" "document"']) # checkViewer('Noteedit', ['noteedit'], @@ -409,13 +409,10 @@ def checkConverterEntries(): checkProg('an EPS -> PDF converter', ['epstopdf'], rc_entry = [ r'\converter eps pdf "epstopdf --outfile=$$o $$i" ""', '']) # - path, convert = checkProg('a PDF -> PNG converter', ['convert']) - if convert != '': - # check whether convert supports the -define option - conv_opts = "-define pdf:use-cropbox=true -depth 8" - if not 'Unrecognized' in cmdOutput('convert ' + conv_opts + ' 2>&1'): - addToRC(r'\converter pdf png "convert %s pdf:$$i png:$$o" ""' % conv_opts) - # + # no agr -> pdf converter, since the pdf library used by gracebat is not + # free software and therefore not compiled in in many installations. + # Fortunately, this is not a big problem, because we will use epstopdf to + # convert from agr to pdf via eps without loss of quality. checkProg('a Grace -> Image converter', ['gracebat'], rc_entry = [ r'''\converter agr eps "gracebat -hardcopy -printfile $$o -hdevice EPS $$i 2>/dev/null" ""