Bug 169486

Summary: kde crashes when reading an invalid *.desktop file in .kde4/Autostart
Product: [Frameworks and Libraries] kdelibs Reporter: Stefan Endrullis <stefan>
Component: generalAssignee: kdelibs bugs <kdelibs-bugs>
Status: RESOLVED FIXED    
Severity: crash CC: faure, h.habighorst
Priority: NOR    
Version: 4.1   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Saved xsession error - line 213 following...

Description Stefan Endrullis 2008-08-20 14:47:31 UTC
Version:            (using KDE 4.1.0)
OS:                Linux
Installed from:    Ubuntu Packages

I'm using Ubuntu 8.04 with 4.1.00 (binary packages provided by http://ppa.launchpad.net/kubuntu-members-kde4/ubuntu).

I have created the file cat .kde4/Autostart/kicker.desktop with the following content:
-------------------
[Desktop Entry]
Name=Kicker
Exec=kicker
-------------------

I can still start KDE4 but I get the following error message (in a popup window) after the start: "The desktop entry file /home/stefan/.kde4/Autostart/kicker.desktop has no Type=... entry."

OK, maybe the .desktop file is invalid. That's my fault. But IMO KDE should not completely crash when I click the OK button of the popup window :)
Comment 1 H.Habighorst 2008-10-02 10:45:06 UTC
Created attachment 27652 [details]
Saved xsession error - line 213 following...
Comment 2 H.Habighorst 2008-10-02 10:48:59 UTC
Sorry, forget to add an comment...

It's definitely reproducable.

The problem is that the whole system just "stops" - there is no possibility to add an backtrace ( I say this out of user experience ;) )

But I've saved the xsessionerror file. 

I hope it helps...

Comment 3 David Faure 2008-10-02 13:46:33 UTC
Yep, this isn't a crash, it's "just" ksmserver exiting :-)

Good thing there's a msg box, it gave me time to attach gdb to it.
Ah, yet another instance of quitOnLastWindowClosed being harmful in unusual apps.

Fixed in trunk 866939, backported to 4.1 branch 866940.