Bug 294619

Summary: kcminit not installed in Meego and Mer images causes 20s delays ksmserver startup
Product: [Plasma] Active Reporter: Lamarque V. Souza <lamarque>
Component: GeneralAssignee: active
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: unscheduled   
Platform: Meego/Harmattan   
OS: Linux   
Latest Commit: Version Fixed In:

Description Lamarque V. Souza 2012-02-22 15:14:24 UTC
Version:           unspecified (using KDE 4.8.0) 
OS:                Linux

kcminit is not installed in Meego and Mer images, at least in the images created by basysKom. Ksmserver tries to contact kcminit through dbus during startup with a 10s timeout, which is always reached according to a debug messages in ~/.xsession-errors. After the first 10s timeout kcmserver, launches klauncher and tries to contact kcminit again with another 10s timeout, which is also reached. In the end ksmserver has a 20s startup because of that.

This can also be the cause of some the problems we have with klauncher and dbus since we started to use startactive. That can also be the cause of two kded running during startup.

Reproducible: Always

Steps to Reproduce:
1. Enable debug messages using kdebugdialog.
2. Reboot the system.
3. Check the messages like "ksmserver(439) KSMServer::kcmPhase1Timeout: Kcminit phase 1 timeout" and "ksmserver(439) KSMServer::kcmPhase2Timeout: Kcminit phase 2 timeout" in ~/.xsession-errors.

Actual Results:  
ksmserver starts with a 20s delay, klauncher is started by ksmserver with a 10s delay. Maybe those delays causes the problems with dbus and klauncher too, or even with kded frozen sometimes.

Expected Results:  
No delay in ksmserver and klauncher startups.

kcminit seems disabled in all Meego and Mer images, maybe because of the mobile profile used to compile kde-workspace.
Comment 1 Lamarque V. Souza 2012-02-27 22:10:05 UTC
Git commit 93fc655c1f749f4405d448e71b51294787202ecb by Lamarque V. Souza.
Committed on 27/02/2012 at 23:08.
Pushed by lvsouza into branch 'master'.

Make ksmserver do not wait for kcminit if it is not running.

REVIEW: 104051

M  +32   -11   ksmserver/startup.cpp

http://commits.kde.org/kde-workspace/93fc655c1f749f4405d448e71b51294787202ecb