avoiding knotify during KDE startup

Lubos Lunak l.lunak at suse.cz
Wed Sep 15 15:44:38 CEST 2004


 Hello,

 another fraction of KDE startup time saved, 11s->10s (again hot caches, 
3xKosole,Klipper).

 If one turns off the KDE startup sound, KNotify actually doesn't need to be 
started during KDE startup, because there seem to be no other events, except 
for few KWin events which don't have any representation by default. So the 
patches change KNotifyClient to check ksmserver and kwin events if they have 
representation, and if not, this none presentation is already handled by 
KNotifyClient itself.

 The KNotifyDialog change checks if the ksmserver event is disabled, and if 
yes, turns off starting knotify in startkde. Hmmmm, although thinking of this 
right now, perhaps knotify startup could be simply always avoided in 
startkde? KNotifyClient starts the daemon anyway if necessary, and I doubt 
anybody would notice the delay caused by this with the startkde sound.

 Comments?

-- 
Lubos Lunak
KDE developer
---------------------------------------------------------------------
SuSE CR, s.r.o.  e-mail: l.lunak at suse.cz , l.lunak at kde.org
Drahobejlova 27  tel: +420 2 9654 2373
190 00 Praha 9   fax: +420 2 9654 2374
Czech Republic   http://www.suse.cz/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: knotifyclient.cpp.patch
Type: text/x-diff
Size: 2556 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kde-optimize/attachments/20040915/c4c3b215/knotifyclient.cpp.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: knotify.cpp.patch
Type: text/x-diff
Size: 1878 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kde-optimize/attachments/20040915/c4c3b215/knotify.cpp.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: knotifydialog.cpp.patch
Type: text/x-diff
Size: 1945 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kde-optimize/attachments/20040915/c4c3b215/knotifydialog.cpp.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: knotifydialog.h.patch
Type: text/x-diff
Size: 439 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kde-optimize/attachments/20040915/c4c3b215/knotifydialog.h.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: knotify.h.patch
Type: text/x-diff
Size: 327 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kde-optimize/attachments/20040915/c4c3b215/knotify.h.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: server.cpp.patch
Type: text/x-diff
Size: 454 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kde-optimize/attachments/20040915/c4c3b215/server.cpp.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: startkde.patch
Type: text/x-diff
Size: 629 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kde-optimize/attachments/20040915/c4c3b215/startkde.bin


More information about the Kde-optimize mailing list