amarok does not save the playlist between computer restarts

Bug #257089 reported by dinel
38
This bug affects 4 people
Affects Status Importance Assigned to Milestone
amarok (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: amarok

After I restart my computer the amarok playlist is empty. However, it is kept if I close amarok and then start it again without a computer restart, so it may not be because of amarok, but some kde component.

lsb_release -rd
Description: Ubuntu intrepid (development branch)
Release: 8.10

apt-cache policy amarok
amarok:
  Installed: 2:1.4.9.1-2ubuntu5
  Candidate: 2:1.4.9.1-2ubuntu5
  Version table:
 *** 2:1.4.9.1-2ubuntu5 0
        500 http://archive.ubuntu.com intrepid/main Packages
        100 /var/lib/dpkg/status

Revision history for this message
Andreas Moog (ampelbein) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. Please answer these questions:

Are you sure you are completely exiting amarok and not just close the GUI when the playlist is preserved?

Changed in amarok:
status: New → Incomplete
Revision history for this message
dinel (dinel) wrote :

Actually, I've just realised. I don't think it is a bug as such. Because right now the shutdown/halt buttons do not seem to work, whenever I want to stop/restart my computer I need to type halt in a terminal. In the past I noticed that whenever I had a power cut, random reboot, etc. the amarok playlist returned to what it was when I started the program (which in this case happened to be blank). Obviously it would be nice to save the playlist whenever it changes, but I suppose this is an improvement, not bug.

Regarding your question: Yes, I am sure that I exit the program completely.

Revision history for this message
Andreas Moog (ampelbein) wrote :

A solution to your problem could be the "smart playlist"-feature of amarok. Regarding your not working shutdown&halt buttons, please open a new bug. I'm closing this one, feel free to reset the status to new if needed.

Changed in amarok:
status: Incomplete → Invalid
Revision history for this message
Martin Kossick (hacktick) wrote :

Hey, I can confirm this behavior.
For years now, amarok does *only* save the playlist when closing it with the "Quit" button.
When I turn off my computer without quitting amarok first, it does not save my playlist. This is really anoying.

I am using amarok with gnome.

Steps to reproduce this bug:

1. Put song A in the playlist.
2. Close Amarok with Ctrl+Q.
3. Open Amarok and add song B to the playlist.
4. Turn off the computer.
5. Start Amarok. In the Playlist just will be song A.

Changed in amarok:
status: Invalid → New
Revision history for this message
Quentin L (bougalerat) wrote :

I have the same problem and i found this :
When closing gnome-session, amarok is killed by a SIGTERM : "pkill amarok".
Under KDE it is closed via dcop : dcop amarok MainApplication-Interface quit
It seems Amarok saves playlists only when closed by dcop.

I guess this is a gnome-integration bug.

Revision history for this message
Harald Sitter (apachelogger) wrote :

Hm, more of a GNOME bug. It shouldn't kill $application but send a QUIT signal, then if the app doesn't quit within e.g. 5 seconds it can kill it. Just killing it is kind of rude ;-)

Are the other affected people also running GNOME?

Changed in amarok:
status: New → Incomplete
Revision history for this message
Martin Kossick (hacktick) wrote :

I'm running gnome, too.

Revision history for this message
Quentin L (bougalerat) wrote : Re: [Bug 257089] Re: amarok does not save the playlist between computer restarts

Hi,
I don't think this is a gnome bug.
Gnome doesn't force any application to quit, it just sends a "TERM"
signal (kill $PID), which is a nice kill.
After 5 seconds if an application is still running, it displays a window
: "following applications are still running", with 3 choices, "quit
anyway", "lock screen", or "cancel".
If you choose "quit anyway", it sends a "KILL" signal : kill -9 $PID.

I think amarok should catch the TERM signal and quit properly, but i am
not a developper and dont know if this is possible?

Quentin

Harald Sitter a écrit :
> Hm, more of a GNOME bug. It shouldn't kill $application but send a QUIT
> signal, then if the app doesn't quit within e.g. 5 seconds it can kill
> it. Just killing it is kind of rude ;-)
>
> Are the other affected people also running GNOME?
>
> ** Changed in: amarok (Ubuntu)
> Status: New => Incomplete
>
>

Revision history for this message
Silviu Tantos (razius) wrote :

I can confirm this bug.
It's really annoying and it exists for a really long time.

Revision history for this message
Matthäus Brandl (matthaeus) wrote :

Confirming, as well on GNOME. But actually, I'm experiencing this since Intrepid. Window state and position isn't saved either...

Changed in amarok:
status: Incomplete → Confirmed
Revision history for this message
Quentin L (bougalerat) wrote :

I found a way to avoid this problem : i installed gshutdown (sudo
apt-get install gshutdown), wrote the script below and put a shortcut
for this script on my desktop.
Now when i want to shut down my laptop i just have to click on the
shortcut and amarok properly exits. On next reboot playlists are ok :-)

(It doesnt solve the bug in amarok, just avoid it)

Quentin

#!/bin/bash
# Pour éteindre l'ordi en fermant proprement amarok
/usr/bin/dcop amarok MainApplication-Interface quit
sleep 1
/usr/bin/gnome-session-save
/usr/bin/gshutdown --action shutdown --launch-now --minimize

Matthäus Brandl a écrit :
> Confirming, as well on GNOME. But actually, I'm experiencing this since
> Intrepid. Window state and position isn't saved either...
>
>

Revision history for this message
Nick S (pinkcoons) wrote :

It seems that Amarok does not do quite a bit of saving and cleanup when pkill'd - which is irritating, because that seems to be what GNOME does on shutdown. It does not save the playlist, nor does it send SIGTERM to script processes (as a workaround I've put checks for whether amarok is still running in all my scripts, probably a good thing to do anyway). I don't know whether this is a GNOME change or an Amarok regression, but to me it seems like this could be solved by catching SIGTERM (which is what I believe GNOME sends) and executing a normal application quit as performed by KDE with dcop.

Revision history for this message
Martin Kossick (hacktick) wrote : Re: [Bug 257089] Re: amarok does not save the playlist between computer restarts

2009/2/7 Nick S <email address hidden>:
> don't know whether this is a GNOME change or an Amarok regression, but
> to me it seems like this could be solved by catching SIGTERM (which is
> what I believe GNOME sends) and executing a normal application quit as
> performed by KDE with dcop.

That would probably be a solution.

Revision history for this message
Harald Sitter (apachelogger) wrote :

Hi there!

Thanks for reporting this bug! Your bug seems to be a problem with the KDE program itself, and not with our KDE packages. While we appreciate your issue, it would be better if it was tracked at https://bugs.kde.org, so that the KDE developers can deal with this speedily and have direct communication with you as the reporter for more effective debugging.

Thanks!

Changed in amarok (Ubuntu):
status: Confirmed → Invalid
Revision history for this message
Martin Kossick (hacktick) wrote : Re: [Bug 257089] Re: amarok does not save the playlist between computer restarts

:) Thats an easy way to get rid of to much work...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.