kdeinit launching in KApplication

David Faure faure at kde.org
Fri Aug 3 15:48:54 BST 2007


On Friday 03 August 2007, Andreas Pakulat wrote:
> On 03.08.07 13:36:08, Lubos Lunak wrote:
> >  is there any special reason why kdeinit&friends are not automatically 
> > launched from KApplication ctor like it is in KDE3 (besides this feature 
> > getting lost while porting to DBUS)? Right now e.g. global shortcuts don't 
> > work, since they require kded and automatically assume it's always there. Are 
> > such things now supposed to explicitly launch kdeinit if needed, since 
> > KApplication is now not mandatory?
> 
> They are launched when they are needed I think. A plain basic kapp
> doesn't start it, but it seems its started when needed, for example
> kdevelop triggers kdeinit and kded start. So I guess this change is
> intentional so not to start uneeded services...

Yes it does work; ktoolinvocation and ksycoca start kdeinit when necessary,
the "global shortcuts" code should just do the same.

KToolInvocation::klauncher();  is the magic incantation that ksycoca uses.

-- 
David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).




More information about the kde-core-devel mailing list