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 526139 - Doesn't select CDDA source when autostarting
Doesn't select CDDA source when autostarting
Status: RESOLVED FIXED
Product: rhythmbox
Classification: Other
Component: Removable Media
unspecified
Other Linux
: Normal normal
: ---
Assigned To: RhythmBox Maintainers
RhythmBox Maintainers
Depends on:
Blocks:
 
 
Reported: 2008-04-04 12:25 UTC by Bastien Nocera
Modified: 2008-04-11 10:49 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
rb-gvfs-cdda-activation.patch (3.21 KB, patch)
2008-04-04 12:25 UTC, Bastien Nocera
committed Details | Review

Description Bastien Nocera 2008-04-04 12:25:27 UTC
When auto-launched from nautilus after an audio CD is inserted, Rhythmbox doesn't select the CD source as it should.

A couple of problems:
- desktop file doesn't say it can handle urls, so only local filenames are passed (which is why iPod autostart would work for example, as a local dirname is passed)
- Playlist parsing in the shell drops unhandled results from totem-pl-parser, when we should at least try to find a source for the item
- gnome-vfs and gvfs use different URLs for cdda. cdda:///dev/sr0 under gnome-vfs would be cdda://sr0/ under gvfs
Comment 1 Bastien Nocera 2008-04-04 12:25:49 UTC
Created attachment 108602 [details] [review]
rb-gvfs-cdda-activation.patch
Comment 2 Bastien Nocera 2008-04-04 12:29:25 UTC
The last item can obviously be safely removed when the port to GIO is finished.
Comment 3 Jonathan Matthew 2008-04-10 08:49:05 UTC
Patch looks OK to me.  I think rb_shell_load_uri is getting a bit too complicated, but reworking it is a task for another day.
Comment 4 Bastien Nocera 2008-04-11 10:49:00 UTC
2008-04-11  Bastien Nocera  <hadess@hadess.net>

        * data/rhythmbox.desktop.in.in: Say that we handle URLs,
        otherwise only local filenames are passed
        * plugins/audiocd/rb-audiocd-source.c
        (_gnome_vfs_to_gvfs_cdda_uri), (impl_want_uri):
        Handle new-style gvfs cdda URIs
        * shell/rb-shell.c (rb_shell_load_uri): When passing URIs that
        are ignored by the playlist parser, try to find a source that
        it could match.

        Fixes starting Rhythmbox from a CDDA nautilus window, or autostarted
        on insertion (Closes: #526139)