GNOME Bugzilla – Bug 171877
all or nothing supports_uris() makes no sense
Last modified: 2008-09-06 18:54:39 UTC
It is highly unlikely any given application would support *all* possible URI schemes, yet the gnome_vfs_mime_application_supports_uris() implies the application surely can handle any URI thrown at it when the function returns TRUE. (I'd like to see arbitrary application support 'sip' or 'x-i-made-it-up' URI schemes.) :) There should be more precise "can open *this* URI I have at hand" -style API.
supports_uris means "support any uri supported by gnome-vfs". using supports_uris and gnome_vfs_uri_new (which returns NULL for uris not supported by gnome-vfs) should make it easy to do what you want.
The documentation doesn't say anything about such restriction. Furthermore I should be able to pass a 'rtsp' or 'nntp' URI to $application if the *application* supports it. Whether the application uses gnome-vfs is an implementation detail I couldn't care less about. The API is about launching a helper application (Gnome, KDE, wine) to handle a URI, right?
Yep, sorry, I confused supports_uri with something else ;)
KDE has an additional field in the .desktop file, named X-KDE-Protocols. Maybe this should be standardized at the freedesktop level, to have a field listing supported schemes for applications not using gnome-vfs.
gnome-vfs has been deprecated and superseded by gio/gvfs since GNOME 2.22, hence mass-closing many of the gnome-vfs requests/bug reports. This means that gnome-vfs is NOT actively maintained anymore, however patches are still welcome. If your reported issue is still valid for gio/gvfs, please feel free to file a bug report against glib/gio or gvfs. @Bugzilla mail recipients: query for gnome-vfs-mass-close to get rid of this notification noise all together. General further information: http://en.wikipedia.org/wiki/GVFS Reasons behind this decision are listed at http://www.mail-archive.com/gnome-vfs-list@gnome.org/msg00899.html