Start Media-App with Shell-Command on Situations

How to start the Media-App with a Shell-Command in order to get shuffled replay.

I hope the Media-App support such options.

And another thing is, you can start more than one instance of the Media-App which leads to stopping the replay of the first started instance. Maybe here exists a option too to prevent multiple-instances?

you can start more than one instance of the Media-App

I can’t, at least not by tapping the icon in the launcher. How do you do that?

I can’t, at least not by tapping the icon in the launcher. How do you do that?

Situations-App can!

Ah so you’re calling /usr/bin/jolla-mediaplayer from Situations?

Ah so you’re calling /usr/bin/jolla-mediaplayer from Situations?

With the Drag & Drop-Command

It might be possible through D-Bus. There is a r/w property Shuffle (and things like Play()/Pause() methods exported on the org.mpris.MediaPlayer2.jolla-mediaplayer service.

See e.g. MediaPlayer2.Player — MPRIS D-Bus Interface Specification

… and plenty of examples at Configs/polybar/scripts/mpris_player/develop_data/mpris_cli_operation.md · master · AxdSop Notes / Unix-like Dotfiles · GitLab

1 Like