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

How can I stop Amarok from playing playlist when opened?

Tags: None
(comma "," separated)
User avatar
danniken
Registered Member
Posts
91
Karma
0
Hello,

I am using Amarock 2.6.0 under KDE 4.9.3 and Fedora 17. The "feature" I would like to change is the behavior that automatically begins playing the playlist when I open up Amarock.

Instead, I would like to be able to open up Amarock without it automatically starting to play music. Once Amarock is opened, I would prefer to start playing the playlist myself, from whatever point of my choosing.

As it is now, it just starts playing whether I want it to or not.

Is there any way I can stop Amarock from automatically starting to play the playlist when I open the application?

Thanks!
User avatar
google01103
Manager
Posts
6668
Karma
25
is settings -> configure Amarok -> playback -> resume playback on start checked?


OpenSuse Leap 42.1 x64, Plasma 5.x

User avatar
danniken
Registered Member
Posts
91
Karma
0
google01103 wrote:is settings -> configure Amarok -> playback -> resume playback on start checked?


No, it is unchecked. Additionally, the songs start playing from the beginning of the song. The song that plays when I open the application is the last song that I was listening to when it was shut down.
User avatar
Mamarok
Manager
Posts
6071
Karma
16
OS
If "Resume playback on start" is not set, then this is likely a problem with the phonon backend, which one and which version do you use?
Or do you use some 3rd-party script that could trigger that?

FWIW, I can't reproduce this here at all.

PS. I changed all the titles to the correct spelling Amarok, without a c, else the thread will not be searchable.


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
danniken
Registered Member
Posts
91
Karma
0
Mamarok wrote:If "Resume playback on start" is not set, then this is likely a problem with the phonon backend, which one and which version do you use?
Or do you use some 3rd-party script that could trigger that?

Not that I am aware of (I have not intentionally installed any script). The version for Phonon is listed as: "Phonon GStreamer backend 4.6.2"

FWIW, I can't reproduce this here at all.

Thank you for that data point. I did set the "Resume playback on start" bit and restartee Amarok, but it has no change on any behavior.

PS. I changed all the titles to the correct spelling Amarok, without a c, else the thread will not be searchable.

Thanks!
User avatar
Mamarok
Manager
Posts
6071
Karma
16
OS
It might be a good idea to erase the old configuration data located in $HOME/.kde/share/config/ (might be $HOME/-kde4/share/config/ on some systems) and try again, Of course the option "Resume playback on start" has to be disabled in the settings if you don't want it to resume.


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
danniken
Registered Member
Posts
91
Karma
0
Thanks again Mamarok, that gives me something to play around with.
User avatar
danniken
Registered Member
Posts
91
Karma
0
I wanted to post a follow up to this thread, as I have discovered by Amarok automatically started playing songs when I opened it.

It is kind of embarrasing what was causing this, so please do not be overly vociferous when directing your laughter in my general direction. :D

The reason that Amarok was automatically playing my song was because the application launcher used the following syntax to launch Amarok:

amarok --append %U --play


Kinda simple, and something I should have noticed.

On a related note, what is the purpose of the "%U" in that command line? I see it a lot, and despite finding references to this, I still cannot fathom what it is there for.

Thanks!
User avatar
google01103
Manager
Posts
6668
Karma
25

Wed Mar 13, 2013 7:18 pm
danniken wrote:<snip>
On a related note, what is the purpose of the "%U" in that command line? I see it a lot, and despite finding references to this, I still cannot fathom what it is there for.

Thanks!

from techbase.kde.org Development/Tutorials/Creating Konqueror Service Menus http://techbase.kde.org/Development/Tut ... vice_Menus
The Exec line defines what is run when the user selects the action from the menu. We can put any command we want there. The magic in this line is the "%u" which gets replaced with the URL of the image file before the command is run. If our command can accept more than one file at a time we can use "%U" instead. There are other special %values but %u and %U are probably the most useful for servicemenus.


OpenSuse Leap 42.1 x64, Plasma 5.x

User avatar
danniken
Registered Member
Posts
91
Karma
0
Yes, as I stated I have seen that explanation, but reading it more times does not make it any more clear. Thanks anyway, though.
User avatar
google01103
Manager
Posts
6668
Karma
25
danniken wrote:<snip> application launcher used the following syntax to launch Amarok:

amarok --append %U --play


Kinda simple, and something I should have noticed.

On a related note, what is the purpose of the "%U" in that command line? I see it a lot, and despite finding references to this, I still cannot fathom what it is there for.

Thanks!

edit the app launcher and remove the "%u", then run it and see what happens


OpenSuse Leap 42.1 x64, Plasma 5.x

User avatar
danniken
Registered Member
Posts
91
Karma
0
google01103 wrote:edit the app launcher and remove the "%u", then run it and see what happens


No difference at all, which is why I was originally wondering what it was there for.
User avatar
Mamarok
Manager
Posts
6071
Karma
16
OS
Please check your settings in "Playback", you probably have the option "resume playback on start" activated.


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 ...
neilh
Registered Member
Posts
7
Karma
0
danniken wrote:The reason that Amarok was automatically playing my song was because the application launcher used the following syntax to launch Amarok:

amarok --append %U --play


Kinda simple, and something I should have noticed.

On a related note, what is the purpose of the "%U" in that command line? I see it a lot, and despite finding references to this, I still cannot fathom what it is there for.

Thanks!


Looking through http://standards.freedesktop.org/deskto ... 01s06.html, it appears that the "%U" is to tell a "file manager or program launcher" to pass on a URL, or multiple URLs as command-line arguments to Amarok. I think this is what makes it possible to launch applications from files or URLs by clicking on them (or possibly by right-clicking on them and bringing up the service-menu list, depending on your desktop setup).
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
That is correct. %U is referring to multiple urls as a possibility, while %u limits it to passing a single url. %F and %f do the same for local files only (with multiple and single files respectively).


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]


Bookmarks



Who is online

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