GUI: fix F1, starting the manual with a URL fragment did not work any more because of the change of generally using %U (manual needs %u)

This commit is contained in:
Jean-Francois Dockes 2019-10-02 18:45:44 +02:00
parent aaa76f3e2d
commit 9594610f33
2 changed files with 5 additions and 2 deletions

View File

@ -506,6 +506,6 @@ void RclMain::startManual(const string& index)
doc.url = path_pathtofileurl(usermanual);
}
doc.mimetype = "text/html";
doc.addmeta(Rcl::Doc::keyapptg, "rclman");
startNativeViewer(doc);
}

View File

@ -20,7 +20,7 @@
# the default xallexcepts list
xallexcepts = application/pdf application/postscript application/x-dvi \
text/html|gnuinfo text/html|chm text/html|epub \
text/html|gnuinfo text/html|chm text/html|epub text/html|rclman \
application/x-fsdirectory|parentopen inode/directory|parentopen
@ -28,6 +28,9 @@ xallexcepts = application/pdf application/postscript application/x-dvi \
# Pseudo entry used if the 'use desktop' preference is set in the GUI.
# Note that we use %U to url-encode the parameter
application/x-all = xdg-open %U
# But do use the uncoded url for help (F1) because the fragment in there must
# actually be processed.
text/html|rclman = xdg-open %u
application/epub+zip = ebook-viewer %f
# Open the parent epub document for epub parts instead of opening them as