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 512591 - Port authentication code to gio
Port authentication code to gio
Product: totem
Classification: Core
Component: xine-lib backend
Other Linux
: Normal normal
: ---
Assigned To: Maintainer alias for xine-lib component of Totem
Maintainer alias for xine-lib component of Totem
Depends on:
Blocks: 512602
Reported: 2008-01-28 15:49 UTC by Bastien Nocera
Modified: 2008-05-24 12:00 UTC
See Also:
GNOME target: ---
GNOME version: ---

Description Bastien Nocera 2008-01-28 15:49:52 UTC
See add_auth_to_uri()

Unfortunately, there's no equivalent functions to gnome_vfs_uri_set_user_name, etc.
Comment 1 Philip Withnall 2008-03-16 14:05:52 UTC
Apparently the way to do it is broadly:

uri = g_file_new_for_uri (mrl);
g_file_mount_enclosing_volume (uri, G_MOUNT_MOUNT_NONE, TODO, NULL, NULL, NULL);
return g_file_get_path (uri);

Where TODO would be an instance of (probably) our own subclass of GMountOperation which calls gnome-keyring and can also present a password dialogue.

See and
Comment 2 Bastien Nocera 2008-05-24 12:00:46 UTC
I killed that code.