]> git.lyx.org Git - lyx.git/commitdiff
* configure.py : Remove unnecessary code in xhtml viewer detection.
authorJulien Rioux <jrioux@lyx.org>
Wed, 7 Sep 2011 23:56:59 +0000 (23:56 +0000)
committerJulien Rioux <jrioux@lyx.org>
Wed, 7 Sep 2011 23:56:59 +0000 (23:56 +0000)
    This code seems unnecessary since not_found = "auto" is set in
    checkViewer, and thus "auto" is used as the viewer when no viewers
    are found, and a lyxrc entry is added anyway. The "auto" string is
    special-cased in the code, where we attempt to automatically
    determine the viewer from the OS.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39640 a592a061-630c-0410-9148-cb99ea01b6c8

lib/configure.py

index b6d3152ced90f2caa85a7334c20e0bc742bf8418..33bd0b7a455ed76a28515a17cfbb6faf901348f1 100644 (file)
@@ -537,10 +537,8 @@ def checkFormatEntries(dtl_tools):
 \Format excel      xls    "Excel spreadsheet"      "" "" "%%"    "document"
 \Format oocalc     ods    "OpenOffice spreadsheet" "" "" "%%"    "document"'''])
  #
-    path, xhtmlview = checkViewer('an HTML previewer', ['firefox', 'mozilla file://$$p$$i', 'netscape'],
+    checkViewer('an HTML previewer', ['firefox', 'mozilla file://$$p$$i', 'netscape'],
         rc_entry = [r'\Format xhtml      xhtml   "LyXHTML"              y "%%" ""    "document,menu=export"'])
-    if xhtmlview == "":
-        addToRC(r'\Format xhtml      xhtml   "LyXHTML"              y "" ""  "document,menu=export"')
  #
     checkEditor('a BibTeX editor', ['jabref', 'JabRef', \
         'pybliographic', 'bibdesk', 'gbib', 'kbib', \