This forum has been archived. All content is frozen. Please use KDE Discuss instead.

How to set up file association to enqueue and play

Tags: None
(comma "," separated)
flightman
Registered Member
Posts
44
Karma
0
OS
Hi all,

please could you advise me how to configure file association to get the following behavior:
Case 1:
- Amarok is not running.
- I press enter on a music file.
- Amarok starts
- The content of the playlist (if exists) is discarded (automatically)
- The file is enqueued in the Amarok's play list - it is the only one in the playlist (automatically)
- Amarok starts to play the file (automatically)

Case 2:
- Amarok is running.
- I press enter on a music file.
- Amarok does not starts another instance, i.e. the current one is used
- The content of the playlist (if exists) is discarded (automatically)
- The file is enqueued in the Amarok's play list - it is the only one in the playlist (automatically)
- Amarok starts to play the file (automatically)

Currently I have the following setting: "amarok %F --play" and the following problems:
for Case 1: Amarok starts but in a strange way because no window appears and it's icon is not in the tray bar. It can be found on via ps -A. Subsequently, when I start Amarok (e.g. from menu), Amarok's window appears and the file is in the playlist.
for Case 2: The file is enqueued at the end of the playlist and does not start to play.

Tanks in advance for any suggestions.
User avatar
Mamarok
Manager
Posts
6071
Karma
16
OS
Could you please specify your Amarok and KDE versions?


Running Kubuntu 22.10 with Plasma 5.26.3, Frameworks 5.100.0, Qt 5.15.6, kernel 5.19.0-23 on Ryzen 5 4600H, AMD Renoir, X11
FWIW: it's always useful to state the exact Plasma version (+ distribution) when asking questions, makes it easier to help ...
flightman
Registered Member
Posts
44
Karma
0
OS
Sorry, I forgot it. Amarok 2.7.1, KDE 4.10.5
User avatar
Mamarok
Manager
Posts
6071
Karma
16
OS
Then I suggest you upgrade to Amarok 2.8 first, as there were some changes in the playlist and playback handling.


Running Kubuntu 22.10 with Plasma 5.26.3, Frameworks 5.100.0, Qt 5.15.6, kernel 5.19.0-23 on Ryzen 5 4600H, AMD Renoir, X11
FWIW: it's always useful to state the exact Plasma version (+ distribution) when asking questions, makes it easier to help ...
flightman
Registered Member
Posts
44
Karma
0
OS
OK, done, upgraded. Now Amarok starts playing files fine but each file is enqueued right after the currently playing one instead of at the end of the list. Using "amarok %F --append" does not help because in such case the file is enqueued at the end but not started to play.
User avatar
Mamarok
Manager
Posts
6071
Karma
16
OS
I think that is the normal queue behavior, if you append you don't append to playlist but you append to queue. But I think the devs know more about, asking them


Running Kubuntu 22.10 with Plasma 5.26.3, Frameworks 5.100.0, Qt 5.15.6, kernel 5.19.0-23 on Ryzen 5 4600H, AMD Renoir, X11
FWIW: it's always useful to state the exact Plasma version (+ distribution) when asking questions, makes it easier to help ...
User avatar
strohel
KDE Developer
Posts
54
Karma
0
OS
Hi,
this may be an unwanted side-effect of some changes to append and play actions in Amarok 2.8. Specifically, Bug #322457.

Please comment on the bug and tell how you'd like
amarok --append --play file.mp3
to behave.

What is rather fixed and won't likely change:
amarok file.mp3 # plays it immediately, prepending the track to the queue / inserting it right after currently playing one.
amarok --append file.mp3 # appends at the end of the playlist, never starts playback


Bookmarks



Who is online

Registered users: abc72656, Bing [Bot], daret, Google [Bot], Sogou [Bot], Yahoo [Bot]