GNOME Bugzilla – Bug 772577
Add custom uri handler for gnome-software
Last modified: 2018-09-24 10:50:40 UTC
https://bugzilla.gnome.org/show_bug.cgi?id=772576 When the xul-support in firefox is gone we want extension support in gnome-software. We want to connect gnome-software with extensions.gnome.org with a custom uri-handler, calling gnome-software from within the browser. This ticket is to track the e.g.o side of the issue. The name of the handler is not yet known, neither is a possible design for the website.
FYI I finally added experimental Firefox support to chrome-gnome-shell [1][2]. So it will supersede NPAPI Firefox plugin. IMHO custom URI handler will be usefull in case when no integration extension is installed. Also such handler may be compatible with integration extension. As I see such handler should begin with 'web+' prefix [3]. For example, 'web+gnomeshellextension://'. [1] https://addons.mozilla.org/en-US/firefox/addon/gnome-shell-integration/ [2] https://git.gnome.org/browse/chrome-gnome-shell/log/?h=feature/firefox [3] https://developer.mozilla.org/en-US/docs/Web/API/Navigator/registerProtocolHandler
For now I suggest 'web+gnomeshellextension://'. We also should discuss URI format.
I believe the Id if the extension is fine. Steam does it the same way with their uri handler and it is resistant against name changes of the extension and naming confusion etc.
Sounds good. I will add button to every extension page with GNOME Software icon and hint "Open in GNOME Software"
Created attachment 343670 [details] GNOME Software icon with integration present I added icon to feature/uri-handler git branch. Demo site is deployed at https://sweettooth.coldzone.ru/extension/1/topicons-plus/ - there is only one extension, but it should be enough for test purposes. As I see Chromium properly calls xdg-open for this URI, while Firefox or GNOME Web action is unclear for me. Probably this URI handler should be registered system-wide for those browsers.
Please test and tell me if it enough
-- 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/Infrastructure/Websites/issues/199.