After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 792611 - [flatpak] The gtk_show_uri behaviour differs from xdg-open
[flatpak] The gtk_show_uri behaviour differs from xdg-open
Status: RESOLVED OBSOLETE
Product: glib
Classification: Platform
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2018-01-17 15:56 UTC by Jan Horak
Modified: 2018-05-24 20:08 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Jan Horak 2018-01-17 15:56:36 UTC
When in flatpak environment the call of gtk_show_uri behaviour differs from xdg-open.

The gtk_show_uri on the file:///....zip file runs yelp (which is present in /usr/share/applications runtime) while xdg-open shows portal dialog for opening file.

The relevant zip file: https://www.colorado.edu/conflict/peace/download/peace.zip

It looks like launch_default_for_uri returns true, so it ends there and does not forward to the portal: https://github.com/GNOME/glib/blob/c68f66c19e41f4188587a63bd74419a1f2c3085b/gio/gappinfo.c#L745
Comment 1 Matthias Clasen 2018-01-17 16:01:09 UTC
does yelp claim to handle zip files ?
Comment 2 Jan Horak 2018-01-17 16:29:17 UTC
I don't think, the mimeinfo.cache contains:
mimeinfo.cache:x-scheme-handler/ghelp=yelp.desktop;
mimeinfo.cache:x-scheme-handler/help=yelp.desktop;
mimeinfo.cache:x-scheme-handler/info=yelp.desktop;
mimeinfo.cache:x-scheme-handler/man=yelp.desktop;

Since mentioned zip file contains a lot of .htm and .html files I guess the g_app_info_... thinks it is a .chm or something.

The file is opened by gtk_open_uri("file:///some/path/file.zip") not by some special scheme.
Comment 3 GNOME Infrastructure Team 2018-05-24 20:08:12 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/glib/issues/1324.