strawberrymusicplayer / strawberry

:strawberry: Strawberry Music Player
https://www.strawberrymusicplayer.org/
GNU General Public License v3.0
2.53k stars 164 forks source link

Command "strawberry -p" works only if... #1465

Open nicoadamo opened 1 week ago

nicoadamo commented 1 week ago

Describe the bug When there's no active instance of Strawberry Player and another application calls "strawberry -p", the applications starts from zero, but the play action is not called. I've detected this because I use KAlarm with that command to start the music, and if after rebooting I didn't open Strawberry before the alarm is called, the the whole purpose of the alarm is not accomplished.

To Reproduce Close any active instance of Strawberry Player. Then from a terminal (or create a command alarm from KAlarm) call $ strawberry -p

Expected behavior 1) If not loaded already, the app Strawberry Player should load and the playing should be started. 2) If loaded already, the playing action should start. Note #2 already works. #1 is the issue I'm reporting.

Screenshots: If applicable, add screenshots to help explain your problem.

System Information:

jonaski commented 1 week ago

The problem is that it tries to play before the playlist is loaded, so we need to delay the play until the playlists are loaded.