GNOME Bugzilla – Bug 124828
Automatically start playing music after start up
Last modified: 2018-05-24 10:25:09 UTC
I'd like RB to have an option to automatically start playing music after being launched. That's all !
*** Bug 303465 has been marked as a duplicate of this bug. ***
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.
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.
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.
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.
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.
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.
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.
That's also mentionned on https://bugs.edge.launchpad.net/rhythmbox/+bug/179110 and still an issue using 0.11.4 on hardy
*** Bug 515813 has been marked as a duplicate of this bug. ***
*** Bug 349201 has been marked as a duplicate of this bug. ***
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??
-- 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.