GNOME Bugzilla – Bug 509615
Implement g_app_info_get_default_for_uri_scheme as module
Last modified: 2008-01-29 16:01:17 UTC
Right now g_app_info_get_default_for_uri_scheme() is just an empty stub. The correct implementation for this on gnome is to look at the gconf settings in "/desktop/gnome/url-handlers". Obviously we can't use gconf directly from glib, so we should allow implementations of this as GIOModules and keep a gconf implementation in gvfs at least until gnome switches to DConf (or whatever).
I'm a bit worried about this. As GIO/GVFS might also be used on (or even by) KDE this might cause inconsistent behavior (GTK apps running on KDE launching different default handlers than KDE apps do). therefore i believe that "url-handlers" settings should either be defined in xdg config files (outside gconf), or requested via a DAPI/xdg-utils interface from the current desktop.
GConf is what we're currently using, and what the current preferences UI edit. Whether we want to change this in the future is one thing, but we need to not regress on this in 2.22, so for now GConf is it.
Any XDG config file or similar would have to be agreed upon anyhow, so the next KDE and GNOME release still would be non-compliant anyhow. Pushing for faster DConf adoption seems like a better use of our time to me. :) Short- and medium-term, Alex' plan looks quite solid. Keep up the good work, hero of all things VFS !
Is there going to be a way for an application to replace xdg-open with gio (and not launching epiphany or firefox on kde)? Not everybody is using gnome-vfs out there.
This now works in trunk glib+gvfs.