strawberrymusicplayer / strawberry

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

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

Closed nicoadamo closed 3 months ago

nicoadamo commented 5 months 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 5 months 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.

nicoadamo commented 4 months ago

I've just checked Strawberry v1.1.0 and the bug (/wish?) is still present.

nicoadamo commented 3 months ago

Thank you! I'm not sure when it will be available in Arch to test, but I appreciate the effort improving this great Strawberry music player!