Bug 169486 - kde crashes when reading an invalid *.desktop file in .kde4/Autostart
Summary: kde crashes when reading an invalid *.desktop file in .kde4/Autostart
Status: RESOLVED FIXED
Alias: None
Product: kdelibs
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 4.1
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-20 14:47 UTC by Stefan Endrullis
Modified: 2008-10-02 13:46 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Saved xsession error - line 213 following... (19.09 KB, application/octet-stream)
2008-10-02 10:45 UTC, H.Habighorst
Details

Note You need to log in before you can comment on or make changes to this bug.
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.