683972f
diff -up lyx-1.6.0rc4/lib/configure.py.xdg_open lyx-1.6.0rc4/lib/configure.py
683972f
--- lyx-1.6.0rc4/lib/configure.py.xdg_open	2008-10-23 10:30:17.000000000 -0500
683972f
+++ lyx-1.6.0rc4/lib/configure.py	2008-10-24 19:20:53.000000000 -0500
683972f
@@ -260,7 +260,7 @@ def checkFormatEntries(dtl_tools):  
bc8caa3
     checkViewer('a FEN viewer and editor', ['xboard -lpf $$i -mode EditPosition'],
bc8caa3
         rc_entry = [r'\Format fen        fen     FEN                    "" "%%"	"%%"	""'])
bc8caa3
     #
bc8caa3
-    path, iv = checkViewer('a raster image viewer', ['xv', 'kview', 'gimp-remote', 'gimp'])
bc8caa3
+    path, iv = checkViewer('a raster image viewer', ['xdg-open', 'xv', 'kview', 'gimp-remote', 'gimp'])
bc8caa3
     path, ie = checkViewer('a raster image editor', ['gimp-remote', 'gimp'])
bc8caa3
     addToRC(r'''\Format bmp        bmp     BMP                    "" "%s"	"%s"	""
bc8caa3
 \Format gif        gif     GIF                    "" "%s"	"%s"	""
683972f
@@ -303,29 +303,29 @@ def checkFormatEntries(dtl_tools):  
bc8caa3
     #
bc8caa3
     #checkProg('a Postscript interpreter', ['gs'],
bc8caa3
     #  rc_entry = [ r'\ps_command "%%"' ])
bc8caa3
-    checkViewer('a Postscript previewer', ['kghostview', 'evince', 'gv', 'ghostview -swap'],
bc8caa3
+    checkViewer('a Postscript previewer', ['xdg-open', 'kghostview', 'evince', 'gv', 'ghostview -swap'],
bc8caa3
         rc_entry = [r'''\Format eps        eps     EPS                    "" "%%"	""	"vector"
bc8caa3
 \Format ps         ps      Postscript             t  "%%"	""	"document,vector"'''])
bc8caa3
     #
bc8caa3
-    checkViewer('a PDF previewer', ['kpdf', 'evince', 'kghostview', 'xpdf', 'acrobat', 'acroread', \
bc8caa3
+    checkViewer('a PDF previewer', ['xdg-open', 'kpdf', 'evince', 'kghostview', 'xpdf', 'acrobat', 'acroread', \
bc8caa3
 		    'gv', 'ghostview'],
bc8caa3
         rc_entry = [r'''\Format pdf        pdf    "PDF (ps2pdf)"          P  "%%"	""	"document,vector"
bc8caa3
 \Format pdf2       pdf    "PDF (pdflatex)"        F  "%%"	""	"document,vector"
bc8caa3
 \Format pdf3       pdf    "PDF (dvipdfm)"         m  "%%"	""	"document,vector"'''])
bc8caa3
     #
bc8caa3
-    checkViewer('a DVI previewer', ['xdvi', 'kdvi'],
bc8caa3
+    checkViewer('a DVI previewer', ['xdg-open', 'xdvi', 'kdvi'],
bc8caa3
         rc_entry = [r'\Format dvi        dvi     DVI                    D  "%%"	""	"document,vector"'])
bc8caa3
     if dtl_tools:
bc8caa3
         # Windows only: DraftDVI
bc8caa3
         addToRC(r'\Format dvi2       dvi     DraftDVI               ""	""	""	"vector"')
bc8caa3
     #
bc8caa3
-    checkViewer('an HTML previewer', ['firefox', 'mozilla file://$$p$$i', 'netscape'],
bc8caa3
+    checkViewer('an HTML previewer', ['xdg-open', 'htmlview', 'firefox', 'mozilla file://$$p$$i', 'netscape'],
bc8caa3
         rc_entry = [r'\Format html       html    HTML                   H  "%%"	""	"document"'])
bc8caa3
     #
bc8caa3
     checkViewer('Noteedit', ['noteedit'],
bc8caa3
         rc_entry = [r'\Format noteedit   not     Noteedit               "" "%%"	"%%"	"vector"'])
bc8caa3
     #
683972f
-    checkViewer('an OpenDocument viewer', ['swriter', 'oowriter'],
683972f
+    checkViewer('an OpenDocument viewer', ['xdg-open', 'swriter', 'oowriter'],
bc8caa3
         rc_entry = [r'\Format odt        odt     OpenDocument           "" "%%"	"%%"	"document,vector"'])
bc8caa3
     #
bc8caa3
     # entried that do not need checkProg