Opening file:// URIs with gio open discards query
When opening i.e. an html file using gio open
with a file:
URI the query gets discarded.
Observed behavior:
-
gio open file://path/to/index.html?foo
opensfile://path/to/index.html
in my preferred browser (firefox), not expected -
gio open file://path/to/index.html#bar
opensfile://path/to/index.html#bar
as expected. -
gio open file://path/to/index.html?foo#bar
opensfile://path/to/index.html?foo#bar
as expected.
Expected:
gio open file://path/to/index.html?foo
opens file://path/to/index.html?foo
, not discarding the query, this should happen for all opensers that use %u
or %U
in their openers. Calling firefox passes all of the above tests.
Tested on gio 2.78.0
This issue came up on the xdg-utils issue tracker.
Edited by Slatian