GNOME Bugzilla – Bug 780471
appinfo: Only use portal as fallback
Last modified: 2017-03-25 21:46:49 UTC
See patch. This allows handling user documentation in flatpak without any special-casing by the application.
Created attachment 348601 [details] [review] appinfo: Only use portal as fallback We currently assume that the OpenURI portal should be used unconditionally when running inside a flatpak sandbox. While the portal is what we usually want, there are exceptions: Yelp is now included in the GNOME runtime to allow displaying help without exporting the user documentation, and the sandboxed app itself may register a scheme handler. To account for those cases transparently, always try the normal code path first and only fall back to calling the portal when that fails.
Review of attachment 348601 [details] [review]: ok
Attachment 348601 [details] pushed as 05f0d81 - appinfo: Only use portal as fallback