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 309696 - rhythmbox doesn't automatically start after opening audio file with Nautilus
rhythmbox doesn't automatically start after opening audio file with Nautilus
Status: RESOLVED FIXED
Product: rhythmbox
Classification: Other
Component: general
HEAD
Other Linux
: Normal normal
: ---
Assigned To: RhythmBox Maintainers
RhythmBox Maintainers
: 323485 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2005-07-07 10:10 UTC by Sebastien Bacher
Modified: 2007-10-12 15:59 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
fix (4.21 KB, patch)
2005-07-11 14:27 UTC, Jonathan Matthew
none Details | Review
slightly better fix (4.33 KB, patch)
2005-07-11 23:28 UTC, Jonathan Matthew
none Details | Review
spork (5.37 KB, patch)
2005-08-23 18:52 UTC, James "Doc" Livingston
none Details | Review
updated patch (5.64 KB, patch)
2005-11-05 15:02 UTC, James "Doc" Livingston
none Details | Review
screenshots about this bug, commented (173.60 KB, image/jpeg)
2007-09-09 16:49 UTC, Eduardo José Moreira
  Details

Description Sebastien Bacher 2005-07-07 10:10:53 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."
Comment 1 Sebastien Bacher 2005-07-07 10:11:35 UTC
same issue with the current CVS, "rhythmbox file" just opens rhythmbox where is
starts playing "file" with 0.8.8
Comment 2 Jonathan Matthew 2005-07-11 14:27:23 UTC
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.
Comment 3 Jonathan Matthew 2005-07-11 23:28:55 UTC
Created attachment 48992 [details] [review]
slightly better fix

added gdk lock calls where required
Comment 4 James "Doc" Livingston 2005-07-25 12:58:03 UTC
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.
Comment 5 James "Doc" Livingston 2005-08-23 18:52:06 UTC
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.
Comment 6 James "Doc" Livingston 2005-11-05 15:02:08 UTC
Created attachment 54353 [details] [review]
updated patch

Updated to cvs
Comment 7 James "Doc" Livingston 2005-11-30 13:26:27 UTC
Obsoleting the patch. This should be easier to do once the play queue lands in cvs.
Comment 8 Matthias Clasen 2005-12-07 15:37:51 UTC
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.
Comment 9 James "Doc" Livingston 2005-12-08 10:49:37 UTC
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.
Comment 10 James "Doc" Livingston 2005-12-08 10:50:34 UTC
*** Bug 323485 has been marked as a duplicate of this bug. ***
Comment 11 Joachim Noreiko 2006-11-20 18:22:41 UTC
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
Comment 12 Eduardo José Moreira 2007-09-09 16:49:17 UTC
Created attachment 95217 [details]
screenshots about this bug, commented
Comment 13 Eduardo José Moreira 2007-09-09 16:51:09 UTC
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).
Comment 14 Eduardo José Moreira 2007-09-09 16:54:46 UTC
Oops, I sent the screenshot first, then my comment to the bug. It should have been the opposite. Sorry for the inconvenience.
Comment 15 Bastien Nocera 2007-09-09 16:59:56 UTC
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.
Comment 16 Eduardo José Moreira 2007-09-12 21:45:09 UTC
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 :-)
Comment 17 Eduardo José Moreira 2007-09-16 11:26:43 UTC
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.
Comment 18 Sebastien Bacher 2007-10-12 15:59:28 UTC
the bug is fixed with the current svn