GNOME Bugzilla – Bug 309696
rhythmbox doesn't automatically start after opening audio file with Nautilus
Last modified: 2007-10-12 15:59:28 UTC
This bug has been opened here: https://bugzilla.ubuntu.com/12471 "After selecting an audio file in Nautilus, rhythmbox starts but doesn't actually play the audio track. You have to manually import the file in the library before beeing able to play it. In Hoary the behaviour was that rhythmbox would simply play the audio file."
same issue with the current CVS, "rhythmbox file" just opens rhythmbox where is starts playing "file" with 0.8.8
Created attachment 48954 [details] [review] fix - if the entry exists, and the library is already loaded, just play it - if the entry exists, but the library isn't fully loaded, wait until the load completes to play it - if the entry doesn't exist, add it; when it's added, add an idle callback to play it Most of this is to avoid the shuffle play order getting out of sync, which results in an assertion failure.
Created attachment 48992 [details] [review] slightly better fix added gdk lock calls where required
This crashes whenever the selected source doesn't implement the "search" method - which is called via rb_shell_play_entry -> rb_shell_jump_to_entry_with_source -> rb_source_header_clear_search -> rb_source_search. We should probably go through all the sources and make sure they implement all methods, or that RbSource has a default for them (this isn't a bug in your patch). I'm also not sure what happens (the above bug precludes me from finding out) if the selected source doesn't/won't contain the track.
Created attachment 51214 [details] [review] spork This patch includes some fixes to make all calls to rb_source_search can rb_source_can_search first. If the given track is not in the selected source it will play the track and then continue from the source, which is probably the desired behaviour.
Created attachment 54353 [details] [review] updated patch Updated to cvs
Obsoleting the patch. This should be easier to do once the play queue lands in cvs.
It would also be great if there was a way to start rhythmbox in way which makes it start playing an audio cd. We are considering ryhthmbox as default audio cd handler, and its required for that.
It should be possible to do this at the moment with "rhythmbox --play cdda:///dev/hdc:1" (or similar), although that isn't by design, it's just an artifact of how RB represents cd tracks internally. It should be easy enough to make it support something like "rhythmbox cdda:///dev/hdc", and I'll take a look at doing this once the queue has landed in cvs, because that will touch a lot of the same code.
*** Bug 323485 has been marked as a duplicate of this bug. ***
That's "open", not "select". Nothing should happen when you select a file, other than it being selected. Incidentally, the original bug URL is no longer valid. You'll find it here instead: https://launchpad.net/products/rhythmbox/+bug/18735
Created attachment 95217 [details] screenshots about this bug, commented
This bug still happens in Ubuntu 7.10 alpha 4, 5 and 6. It's about double-clicking a music file on Nautilus, not selecting it (and Rhythmbox not playing the file). See attached screenshot. To reproduce: double-click an .ogg music file in nautilus, nothing happens (well, an error pop-up is shown about no program found for for handling this type of file. Ouch. To reproduce in another way: right-click the .ogg file, select Open with Rhythmbox, the app opens but doesn't plays the file, nor even shows it. Only way to play the .ogg file is opening Rhythmbox and using Music -> Import file... The file is played, finally! Already reported as bug 18735 in Ubuntu's Launchpad. See last comment there, it has a nice screenshot illustrating the bug (attached here as well).
Oops, I sent the screenshot first, then my comment to the bug. It should have been the opposite. Sorry for the inconvenience.
I believe that was fixed (at least in part) by my commits to allow CD playback from the command-line (bug 471887 and bug 401091). Please test with the current SVN trunk of Rhythmbox and let us know whether it works.
Thanks for the suggestion, I'll compile and test the SVN trunk version hopefully this friday/weekend, once I solve my currently borked X config (right now Gutsy doesn't like plugging a projector to clone the screen :-)
Could not finish compiling SVN trunk this saturday. It's very hard to satisfy the dependencies of autogen.sh, it keeps warning about some m4 macros not found and ./configure fails. I also managed to leave my system unusable and ready for reinstall. Oh well, that's life :-). In other, better news, this bug could be the same as 134134 in Ubuntu's Launchpad, now (almost) fixed: https://bugs.launchpad.net/ubuntu/+source/totem/+bug/134134 I'll reinstall and upgrade to have the newest Rhythmbox and see whether double-clicking an ogg audio file in nautilus finally opens Rhythmbox and plays the song.
the bug is fixed with the current svn