Bug 232901

Summary: System settings sometimes are not being shown in Computer -> Applications
Product: [Plasma] plasma4 Reporter: Mad Fish <MadFishTheOne>
Component: widget-kickoffAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: annma, debfx-kde, helder.meneses, sitter
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: showing the bug
Call reloadApplications() in SystemModel constructor

Description Mad Fish 2010-03-31 23:43:11 UTC
Version:           KDE 4.4.2 (using KDE 4.4.1)
Compiler:          gcc 4.4.3 
OS:                Linux
Installed from:    Archlinux Packages

Menu used to have two items there: "Run command..." and "System settings". But it sometimes shows only one of them, usually "Run command..." and there is no easy way to open system settings (have to keep it in favorites to avoid launching it by command).

Here how it looks (notice missing "System settings" there): http://img714.imageshack.us/img714/2405/kickoffbug.png
Comment 1 Anne-Marie Mahfouf 2010-04-01 17:46:09 UTC
Created attachment 42429 [details]
showing the bug
Comment 2 Anne-Marie Mahfouf 2010-04-01 17:47:47 UTC
Always attach screenshots directly otherwise they might expire.
Comment 3 Anne-Marie Mahfouf 2010-04-02 08:24:13 UTC
I am having this bug right now in my 4.4 branch build, not sure what's happening here and where to start to investigate! I confirm this bug report meanwhile.
Comment 4 Anne-Marie Mahfouf 2010-04-02 08:33:33 UTC
Actually I have a hint. I opened KMenuEdit and restored defaults to System Menu (in the Edit menu) and saved; System Settings appeared again in Kickoff. 
As soon as I switch to Classic Menu and back to Kickoff the System Settings entry disappears.

Note: there does not seem to be a "System Settings" entry in classic menu.

Can you try to reproduce a pattern based on this? I'll investigate further myself but I have little time in the next days.
Comment 5 Felix Geyer 2010-04-11 20:30:07 UTC
Created attachment 42696 [details]
Call reloadApplications() in SystemModel constructor

I think the problem is that SystemModel::reloadApplications() might never be called.
My testings haven shown that the attached patch fixes this bug by calling reloadApplications() in the constructor.
It applies to KDE 4.4 and trunk.
Comment 6 Harald Sitter 2010-04-12 12:57:25 UTC
*** Bug 232729 has been marked as a duplicate of this bug. ***
Comment 7 Harald Sitter 2010-04-12 13:23:56 UTC
SVN commit 1113958 by sitter:

Fix stuff randomly disappearing from kickoff's computer tab by making the SystemModel use reloadApplications.
Thanks to Felix Geyer for the patch!
BUG: 232901


 M  +1 -0      systemmodel.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1113958
Comment 8 Harald Sitter 2010-04-12 13:24:32 UTC
SVN commit 1113960 by sitter:

Backport r1113958.
Fix stuff randomly disappearing from kickoff's computer tab by making the SystemModel use reloadApplications.
Thanks to Felix Geyer for the patch!
BUG: 232901


 M  +1 -0      systemmodel.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1113960