From 3a668a6b2280522fe04fb931946c45873e96c524 Mon Sep 17 00:00:00 2001 From: Jean-Francois Dockes Date: Tue, 27 Aug 2019 07:33:35 +0200 Subject: [PATCH] GUI open document: use %U (encoded URL) instead of %u with xdg-open. Else #*, ?* are stripped as fragment or query --- src/sampleconf/mimeview | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/sampleconf/mimeview b/src/sampleconf/mimeview index cf919a43..9f4f4b65 100644 --- a/src/sampleconf/mimeview +++ b/src/sampleconf/mimeview @@ -25,8 +25,9 @@ xallexcepts = application/pdf application/postscript application/x-dvi \ [view] -# Pseudo entry used if the 'use desktop' preference is set in the GUI -application/x-all = xdg-open %u +# 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 application/epub+zip = ebook-viewer %f # Open the parent epub document for epub parts instead of opening them as