3eb75e7
diff -ur lyx-2.0.0rc1.orig/lib/configure.py lyx-2.0.0rc1/lib/configure.py
3eb75e7
--- lyx-2.0.0rc1.orig/lib/configure.py	2011-03-01 22:45:24.000000000 +0000
3eb75e7
+++ lyx-2.0.0rc1/lib/configure.py	2011-03-11 18:53:32.189708571 +0000
3eb75e7
@@ -458,7 +458,7 @@
2f0c85d
     checkViewerEditor('a SVG viewer and editor', ['inkscape'],
2f0c85d
         rc_entry = [r'\Format svg        svg     SVG                    "" "%%" "%%"	"vector"'])
2f0c85d
     #
2f0c85d
-    path, iv = checkViewerNoRC('a raster image viewer', ['xv', 'kview', 'gimp-remote', 'gimp'],
2f0c85d
+    path, iv = checkViewerNoRC('a raster image viewer', ['xdg-open', 'xv', 'kview', 'gimp-remote', 'gimp'],
2f0c85d
         rc_entry = [r'''\Format bmp        bmp     BMP                    "" "%s"	"%s"	""
2f0c85d
 \Format gif        gif     GIF                    "" "%s"	"%s"	""
2f0c85d
 \Format jpg        jpg     JPEG                   "" "%s"	"%s"	""
3eb75e7
@@ -521,7 +521,7 @@
e4b9240
 \Format excel      xls    "Excel spreadsheet"      "" "" "%%"    "document" 
e4b9240
 \Format oocalc     ods    "OpenOffice spreadsheet" "" "" "%%"    "document"''']) 
2f0c85d
  #
2f0c85d
-    path, xhtmlview = checkViewer('an HTML previewer', ['firefox', 'mozilla file://$$p$$i', 'netscape'],
9106482
+    path, xhtmlview = checkViewer('an HTML previewer', ['xdg-open', 'firefox', 'mozilla file://$$p$$i', 'netscape'],
3eb75e7
         rc_entry = [r'\Format xhtml      xhtml   "LyXHTML"              y "%%" ""    "document,menu=export"'])
2f0c85d
     if xhtmlview == "":
3eb75e7
         addToRC(r'\Format xhtml      xhtml   "LyXHTML"              y "" ""  "document,menu=export"')
3eb75e7
@@ -535,11 +535,11 @@
2f0c85d
     #
2f0c85d
     #checkProg('a Postscript interpreter', ['gs'],
2f0c85d
     #  rc_entry = [ r'\ps_command "%%"' ])
2f0c85d
-    checkViewer('a Postscript previewer', ['kghostview', 'okular', 'evince', 'gv', 'ghostview -swap'],
2f0c85d
+    checkViewer('a Postscript previewer', ['xdg-open', 'kghostview', 'okular', 'evince', 'gv', 'ghostview -swap'],
2f0c85d
         rc_entry = [r'''\Format eps        eps     EPS                    "" "%%"	""	"vector"
2f0c85d
 \Format ps         ps      Postscript             t  "%%"	""	"document,vector"'''])
2f0c85d
     # for xdg-open issues look here: http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg151818.html
2f0c85d
-    checkViewer('a PDF previewer', ['kpdf', 'okular', 'evince', 'kghostview', 'xpdf', 'acrobat', 'acroread', \
2f0c85d
+    checkViewer('a PDF previewer', ['xdg-open', 'kpdf', 'okular', 'evince', 'kghostview', 'xpdf', 'acrobat', 'acroread', \
2f0c85d
 		    'gv', 'ghostview'],
3eb75e7
         rc_entry = [r'''\Format pdf        pdf    "PDF (ps2pdf)"          P  "%%"	""	"document,vector,menu=export"
3eb75e7
 \Format pdf2       pdf    "PDF (pdflatex)"        F  "%%"	""	"document,vector,menu=export"
3eb75e7
@@ -547,14 +547,14 @@
3eb75e7
 \Format pdf4       pdf    "PDF (XeTeX)"           X  "%%"	""	"document,vector,menu=export"
3eb75e7
 \Format pdf5       pdf    "PDF (LuaTeX)"          u  "%%"	""	"document,vector,menu=export"'''])
2f0c85d
     #
2f0c85d
-    checkViewer('a DVI previewer', ['xdvi', 'kdvi', 'okular', 'yap', 'dviout -Set=!m'],
3eb75e7
+    checkViewer('a DVI previewer', ['xdg-open', 'xdvi', 'kdvi', 'okular', 'yap', 'dviout -Set=!m'],
3eb75e7
         rc_entry = [r'''\Format dvi        dvi     DVI                    D  "%%"	""	"document,vector,menu=export"
3eb75e7
 \Format dvi3       dvi     "DVI (LuaTeX)"          V  "%%"	""	"document,vector,menu=export"'''])
2f0c85d
     if dtl_tools:
2f0c85d
         # Windows only: DraftDVI
9106482
         addToRC(r'\Format dvi2       dvi     DraftDVI               ""	""	""	"vector"')
9106482
     #
9106482
-    checkViewer('an HTML previewer', ['firefox', 'mozilla file://$$p$$i', 'netscape'],
9106482
+    checkViewer('an HTML previewer', ['xdg-open', 'firefox', 'mozilla file://$$p$$i', 'netscape'],
3eb75e7
         rc_entry = [r'\Format html       html    HTML                   H  "%%"	""	"document,menu=export"'])
9106482
     #
9106482
     checkViewerEditor('Noteedit', ['noteedit'],