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 509615 - Implement g_app_info_get_default_for_uri_scheme as module
Implement g_app_info_get_default_for_uri_scheme as module
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: gio
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Alexander Larsson
gtkdev
Depends on:
Blocks:
 
 
Reported: 2008-01-15 12:07 UTC by Alexander Larsson
Modified: 2008-01-29 16:01 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Alexander Larsson 2008-01-15 12:07:56 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).
Comment 1 Norbert Frese 2008-01-20 00:16:56 UTC
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.

Comment 2 Alexander Larsson 2008-01-21 09:42:56 UTC
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.
Comment 3 Philipp 2008-01-25 04:17:27 UTC
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 !
Comment 4 Yevgen Muntyan 2008-01-25 17:05:46 UTC
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.
Comment 5 Alexander Larsson 2008-01-29 16:01:17 UTC
This now works in trunk glib+gvfs.