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:
parent
aaa76f3e2d
commit
9594610f33
@ -506,6 +506,6 @@ void RclMain::startManual(const string& index)
|
|||||||
doc.url = path_pathtofileurl(usermanual);
|
doc.url = path_pathtofileurl(usermanual);
|
||||||
}
|
}
|
||||||
doc.mimetype = "text/html";
|
doc.mimetype = "text/html";
|
||||||
|
doc.addmeta(Rcl::Doc::keyapptg, "rclman");
|
||||||
startNativeViewer(doc);
|
startNativeViewer(doc);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -20,7 +20,7 @@
|
|||||||
# the default xallexcepts list
|
# the default xallexcepts list
|
||||||
|
|
||||||
xallexcepts = application/pdf application/postscript application/x-dvi \
|
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
|
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.
|
# Pseudo entry used if the 'use desktop' preference is set in the GUI.
|
||||||
# Note that we use %U to url-encode the parameter
|
# Note that we use %U to url-encode the parameter
|
||||||
application/x-all = xdg-open %U
|
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
|
application/epub+zip = ebook-viewer %f
|
||||||
# Open the parent epub document for epub parts instead of opening them as
|
# Open the parent epub document for epub parts instead of opening them as
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user