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 171877 - all or nothing supports_uris() makes no sense
all or nothing supports_uris() makes no sense
Status: RESOLVED WONTFIX
Product: gnome-vfs
Classification: Deprecated
Component: MIME and file/program mapping
2.11.x
Other Linux
: Normal enhancement
: ---
Assigned To: gnome-vfs maintainers
gnome-vfs maintainers
Depends on:
Blocks:
 
 
Reported: 2005-03-28 15:57 UTC by Tommi Komulainen
Modified: 2008-09-06 18:54 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement



Description Tommi Komulainen 2005-03-28 15:57:00 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.
Comment 1 Christophe Fergeau 2005-03-29 07:38:32 UTC
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.
Comment 2 Tommi Komulainen 2005-03-29 08:53:43 UTC
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?
Comment 3 Christophe Fergeau 2005-03-29 14:48:46 UTC
Yep, sorry, I confused supports_uri with something else ;)
Comment 4 Josselin Mouette 2006-09-04 08:53:21 UTC
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.
Comment 5 André Klapper 2008-09-06 18:54:39 UTC
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