Bug 101017 - Amarok not starting with the rest of the KDE session
Summary: Amarok not starting with the rest of the KDE session
Status: RESOLVED NOT A BUG
Alias: None
Product: amarok
Classification: Applications
Component: general (show other bugs)
Version: 1.2
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Amarok Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-07 08:56 UTC by Neil Williams
Modified: 2006-06-11 12:32 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Neil Williams 2005-03-07 08:56:50 UTC
Version:           1.2 (using KDE 3.3.2,  (3.1))
Compiler:          gcc version 3.3.5 (Debian 1:3.3.5-8)
OS:                Linux (i686) release 2.4.25-1-686

v1.2 no longer starts (hidden or otherwise) when logging in with KDE. This is unexpected for an application that uses the system tray.
Comment 1 Max Howell 2005-03-11 00:09:37 UTC
WORKSFORME, but other people have reported this too. I don't understand it yet.
Comment 2 Neil Williams 2005-03-15 12:21:52 UTC
OK. Where do I start looking for what's different on Debian unstable compared to your setup? For reference, I'm running Klipper, KwikDisk, KsCD, KGpg, KDE Wallet and KMail in the system tray. It did use to work with all of those but maybe now there's an overload issue? If you use the same list, does Amarok still start up at login?

I spend most of my time in Gnome development, rather than KDE, so what should I be looking for to put some light on why KDE starts amarok for some people and not others?
Comment 3 Max Howell 2005-03-15 22:35:14 UTC
I can't really say. Maybe check your ~/.xsession logs for some amaroK output from the amarok binary. Thanks.
Comment 4 Neil Williams 2005-03-15 23:14:24 UTC
I get no output into ~/.xsession-errors from amarok.

Amarok is being saved by KDE session, I get this in 
~/.kde/share/config/ksmserverrc

clientId7=10d0c6deca000111092361800000161280010
count=7
discardCommand7=
program7=amarokapp
restartCommand7=amarokapp,-session,10d0c6deca000111092361800000161280010_1110923710_970
restartStyleHint7=0
userId7=neil

That restartCommand7 is key. I logged out, switched to a console login, edited ~/.kde/share/config/ksmserverrc to change restartCommand7=amarokapp to restartCommand7=amarok (leaving the ,-session... intact) and amarok restarted as it used to when I logged in using the GUI.

So, to me, it would appear that amarok is reporting itself to ksmserver as amarokapp instead of amarok. Thereby causing ksmserver to try to restart amarokapp which doesn't exist.

Does that help?
Comment 5 Brian Kimball 2005-03-23 08:06:23 UTC
I had this problem too with Debian unstable's 1.2.1-1 package.

s/amarokapp/amarok/ in ksmserverrc fixed it for me.  Thanks for the tip
Neil.  Now I know how KDE session management works.

[sorry for duplicate email; I now see I need to have an account on 
bugs.kde.org and that whether you guys get CCed is up to you, not me]

Thanks,

      Brian
Comment 6 Nick Shaforostoff 2005-04-02 20:17:29 UTC
this problem stays in 1.2.3-1 (deb too)
Comment 7 Michał ,,KNT'' Gorycki 2005-04-03 11:29:47 UTC
*** This bug has been confirmed by popular vote. ***
Comment 8 Mark Kretschmann 2005-04-03 11:48:12 UTC
Neil wrote:
"So, to me, it would appear that amarok is reporting itself to ksmserver as amarokapp instead of amarok. Thereby causing ksmserver to try to restart amarokapp which doesn't exist."

Why does amarokapp not exist? It must exist, for amarokapp is the actual amaroK binary.
Comment 9 Stefan Siegel 2005-04-03 11:52:00 UTC
Debian patches amaroK to install amarokapp 
in /usr/lib/amarok/amarokapp (instead of /usr/bin/amarokapp), so the 
session manager doesn't find it when it restores the session.
Comment 10 Mark Kretschmann 2005-04-03 12:02:51 UTC
So, can we close this? I guess this should go into the debian bug database.
Comment 11 Stefan Siegel 2005-04-03 13:51:48 UTC
Okay, I will close this. The Debian bug report is here: bughttp://bugs.debian.org/cgi-bin/bugreport.cgi?bug=302852
Comment 12 Stefan Siegel 2005-04-03 13:53:17 UTC
Sorry, something got wrong with the link, here it is again:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=302852
Comment 13 Adeodato Simó 2005-04-04 00:02:39 UTC
* Stefan Siegel [Sun, 03 Apr 2005 13:34:52 +0200]:

> Debian patches amaroK to install amarokapp 
> in /usr/lib/amarok/amarokapp (instead of /usr/bin/amarokapp), so the 
> session manager doesn't find it when it restores the session.


  Uhm, thanks for the heads up. I had noticed it and was buggering me. ;-)

  For the record, this was working fine (afaict) until this commit:

amarok/src/amarokcore/main.cpp - revision 1.47
date: 2005/01/27 00:51:42;  author: mhowell;  state: Exp;  lines: +2 -2

* We no longer adjust argv[0] from amarokapp to amarok as this was what was
breaking DrKonqi (at least for me). I don't know if this regresses
anything else, but if it does we need to think about this.

  So the fix would be trivial, but DrKonqi has issues with it. Oh well.