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 124828 - Automatically start playing music after start up
Automatically start playing music after start up
Status: RESOLVED OBSOLETE
Product: rhythmbox
Classification: Other
Component: general
0.11.x
Other Linux
: Normal enhancement
: ---
Assigned To: RhythmBox Maintainers
RhythmBox Maintainers
: 303465 349201 515813 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2003-10-17 10:59 UTC by Julien Olivier
Modified: 2018-05-24 10:25 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch (1.10 KB, patch)
2005-07-29 11:22 UTC, Jonathan Matthew
none Details | Review
better patch (1.65 KB, patch)
2005-08-01 21:57 UTC, Jonathan Matthew
none Details | Review
even better patch (13.31 KB, patch)
2005-08-14 13:23 UTC, Jonathan Matthew
none Details | Review
even betterer patch (14.04 KB, patch)
2005-08-20 07:29 UTC, Jonathan Matthew
none Details | Review

Description Julien Olivier 2003-10-17 10:59:40 UTC
I'd like RB to have an option to automatically start playing music after
being launched.

That's all !
Comment 1 Sebastien Bacher 2005-06-04 15:42:13 UTC
*** Bug 303465 has been marked as a duplicate of this bug. ***
Comment 2 Jonathan Matthew 2005-07-29 11:22:21 UTC
Created attachment 49924 [details] [review]
patch

'rhythmbox --play' is almost what you want, but right now it always plays from
the library (unless there's already a rhythmbox running); this patch fixes
that.
Comment 3 Jonathan Matthew 2005-08-01 21:57:17 UTC
Created attachment 50098 [details] [review]
better patch

now works for playlists too - the playlist query model wasn't processing the
added entries until its idle handler got called, which was some time after we
tried to start the playlist.
Comment 4 James "Doc" Livingston 2005-08-02 16:54:49 UTC
When I use `rhythmbox --play` with the last played source being a playlist, it
half works - it selects the playlist and puts the playing icon next to it, but
doesn't actually start playing. Running with -d doesn't show anything obviously
helpful.
Comment 5 Jonathan Matthew 2005-08-14 13:23:12 UTC
Created attachment 50682 [details] [review]
even better patch

Now works for autoplaylists too, and incidentally removes some unused junk from
the playlist and iradio sources.

How it works now is that sources emit a signal when they're fully loaded. 
Usually this means when the query model has emits its 'complete' signal, but
for other types of sources (audio cd, daap..) it'd be something else.

RBShell now notices when the initially selected source is created (this should
be the only time the selected-source string in gconf specifies a source that
doesn't already exist), and connects a handler to its 'loaded' signal, so it
can start playing from the source as soon as it's ready.
Comment 6 James "Doc" Livingston 2005-08-15 11:17:33 UTC
Looks good to me.

I checked to see what would happen if the last played source didn't exist (i.e.
it was a playlist that I manually remove from playlists.xml), and it doesn't
play anything. I'm not sure whether "rhythmbox --play" should always cause
something to played, or not.
Comment 7 Jonathan Matthew 2005-08-20 07:29:20 UTC
Created attachment 51018 [details] [review]
even betterer patch

Now figures out when the selected source from gconf isn't going to appear and
plays from the library instead.  I don't think this is terribly important at
the moment, but it seems like a good idea for when audio CD and DAAP are
available, as long as the 'is the selected source available' check is in a
sensible place.

Also fixes a warning emitted due to calling rb_shell_select_source_internal
before the playlist manager is created.
Comment 8 Jonathan Matthew 2005-08-30 22:06:22 UTC
The selected source is no longer stored in gconf, so this patch is now useless.
Rhythmbox will always select the library on startup, so the existing code will work.
Comment 9 Sebastien Bacher 2008-01-08 13:46:55 UTC
That's also mentionned on https://bugs.edge.launchpad.net/rhythmbox/+bug/179110 and still an issue using 0.11.4 on hardy
Comment 10 Jonathan Matthew 2008-02-11 22:12:07 UTC
*** Bug 515813 has been marked as a duplicate of this bug. ***
Comment 11 Sebastien Bacher 2008-11-05 14:31:40 UTC
*** Bug 349201 has been marked as a duplicate of this bug. ***
Comment 12 Brett Alton 2009-10-05 16:38:27 UTC
With Rhythmbox 0.12.5, running `rhythmbox-client --play` still does not make Rhythmbox play music as rhythmbox-client only works with an already running instances of rhythmbox.

Is there a way, such as scripting to make an alarm clock, to make Rhythmbox start playing music, even if Rhythmbox isn't already running??
Comment 13 GNOME Infrastructure Team 2018-05-24 10:25:09 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/rhythmbox/issues/17.