GNOME Bugzilla – Bug 792611
[flatpak] The gtk_show_uri behaviour differs from xdg-open
Last modified: 2018-05-24 20:08:12 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
does yelp claim to handle zip files ?
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.
-- 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.