KDaemonApplication
Jordi
mumismo at wanadoo.es
Tue May 27 15:10:33 CEST 2003
El Martes, 27 de Mayo de 2003 13:51, Lubos Lunak escribió:
> On Tuesday 27 of May 2003 13:30, David Faure wrote:
> > On Tuesday 27 May 2003 13:21, Jordi wrote:
> > > hi,
> > > In nowadays KDE there are several non GUI apps like kded klauncher...
> > > that are non-GUI apps but as they use KApplication or
> > > KUniqueApplication has a lot of dependences and overload.
> > >
> > > I'm also i'm trying to run parts of kde (for instance konqueror) in a
> > > minimal system, when i run kded "standard theme crystalsvg is not
> > > found" message is displayed. It's not a problem for me but it seems
> > > pretty bad design having something like kded or klauncher wondering
> > > about icon themes.
> > >
> > > What about KDaemonApp or something like that, with as little
> > > dependencies as possible (not initialiting as many things as
> > > kapplication does), to be able to write lightweight daemons. Or at
> > > least to have daemons that knows as little as possible about GUI.
> >
> > The boolean arguments to the KApplication constructor allow to tell it
> > that no GUI will be used in the application (=> no need for KDaemonApp or
> > so). Note that this means not even a dialog box.
> > kded has so many modules that it's impossible to be sure it won't ever
> > pop up a message box. Disabling GUI support in klauncher sounds good
> > though.
>
> KLauncher already has GUI disabled.
Ok, my fault, first see the kded "problem" and later read the klauncher code .
I saw the KApplication (false, false) and the comment telling this is used to
disable GUI. I just supposed kded did it also, but i was wrong .
Starting klauncher don't do any attempt to look for GUI elements (or it seems
so to me).
--
Jordi Polo
More information about the Kde-optimize
mailing list