[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: kded, autoload ? load on demand ?
From:       Waldo Bastian <bastian () kde ! org>
Date:       2003-02-28 22:42:35
[Download RAW message or body]

On Friday 28 February 2003 21:14, Pupeno wrote:
> On Friday 28 February 2003 10:25, Lubos Lunak wrote:
> >  If you don't explicitly specify either of the two X-KDED-* flags in the
>
> which flags ?
>
> > .desktop file, kded will try to load the module when it gets a DCOP call
> > that kded won't be able to handle itself. I.e. if you do 'dcop kded
> > some_module some_function', kded will try to load kded module some_module
> > . If the loading succeeds, kded will pass the DCOP call (and all
> > following matching calls) to the module.
> >
> >  So, in normal case, you don't need to do anything special about kded
> > modules. They will be loaded when they're first needed ('needed' =
> > there's a DCOP call for them).
>
> That sounds really, really good :)
>
> >  But, IIRC, Proklam is something for text-to-speech, right? If Proklam
> > will need other ways of activating than DCOP calls, you can for example
>
> DCOP calls would be enough because it's the only input way of KTTSD and if
> there's no input, it's not needed.
>
> > manipulate loading and unloading kded modules by kded DCOP functions
> > loadModule() and unloadModule(). Also, you should probably consider if
> > it's really a good idea to make it a kded module - there probably
> > shouldn't be modules that would be large and potentionally could make
> > kded crash (I don't know Proklam - maybe I'm completely wrong here ...
> > just in case).
>
> well, kttsd code is very small and clean and I will valgrind it... plug ins
> are small and clean too, the problem maybe libraries the plug ins are
> using, for example, Festival, that might not be so clean and small... but
> so far, I didn't have a single crash because of Festival (all were my fault
> and are solved), so, I think there shouldn't be any problem.
>
> BTW, I did the module and when I try to load this happens:
> $ dcop kded kded loadModule kttsd
> false
> $
>
> how can I get something more verbose ?

Watch the output of kded in a terminal window. (e.g. do in a seperate terminal 
window: dcopquit kded; kded)

Wrt your problem: did you install a .desktop file to $(kde_servicesdir)/kded?
See e.g. kdelibs/kioslaves/http/kcookiejar/kcookiejar.desktop for an example.

Cheers,
Waldo
-- 
bastian@kde.org -=|[ SuSE, The Linux Desktop Experts ]|=- bastian@suse.com

 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic