Blob Blame Raw
--- ./lib/helpdef.gi.orig	2008-06-23 04:12:20.000000000 -0600
+++ ./lib/helpdef.gi	2011-12-30 15:24:46.334844855 -0700
@@ -332,6 +332,11 @@ HELP_BOOK_HANDLER.default.ReadSix := fun
       res.pdffile := ShallowCopy(fname);
       Add(res.formats, "pdf");
     fi;
+    fname{[Length(fname)-5..Length(fname)]} := "dvi.gz";
+    if IsExistingFile( fname ) = true then
+      res.dvifile := ShallowCopy(fname);
+      Add(res.formats, "dvi");
+    fi;
   fi;
   res.directories := Directory(fname{[1..Length(fname)-10]});  
   return res;
--- ./lib/helpview.gi.orig	2005-04-20 05:38:02.000000000 -0600
+++ ./lib/helpview.gi	2011-12-30 15:30:48.173594656 -0700
@@ -283,6 +283,27 @@ show := function(file)
 end
 );
 
+# View HTML, DVI, or PDF files with xdg-open, which opens documents with the
+# user's preferred application.
+HELP_VIEWER_INFO.xdghtml := rec(
+type := "url",
+show := function(url)
+  Exec(Concatenation("xdg-open \"", url, "\""));
+end
+);
+HELP_VIEWER_INFO.xdgdvi := rec(
+type := "dvi",
+show := function(file)
+  Exec(Concatenation("xdg-open \"", file, "\""));
+end
+);
+HELP_VIEWER_INFO.xdgpdf := rec(
+type := "pdf",
+show := function(file)
+  Exec(Concatenation("xdg-open \"", file, "\""));
+end
+);
+
 #############################################################################
 ##
 #F  SetHelpViewer(<viewer>):  Set the viewer used for help