startup time: autostart
Waldo Bastian
bastian at kde.org
Tue May 21 19:47:49 BST 2002
On Tuesday 21 May 2002 11:31 am, Matthias Ettrich wrote:
> On Tuesday 21 May 2002 20:08, Waldo Bastian wrote:
> > On Tuesday 21 May 2002 05:25 am, Matthias Ettrich wrote:
> > > Most applications, at least the big ones like kicker, kdesktop or even
> > > kwrited and khotkeys register with dcop. Thus we could use the dcop bus
> > > to figure out when the application has been started.
> > >
> > > Say we add a field
> > >
> > > X-KDE-autostart-wait-DCOP=appname
> > >
> > > to the desktop files which makes klauncher wait for the
> > > DCOPClient::applicationRegistered(appname) signal.
> >
> > There is already X-DCOP-ServiceType which defines _that_ the application
> > registers with dcop and which indirectly defines the name it registers
> > with, so you would only need something like:
> >
> > X-KDE-autostart-wait-DCOP=true
>
> I see, but how do I reliably get the DCOP appname? Take panel.desktop as an
> example. DCOP-Service type is "wait" and EXEC is kicker, so is the dcop
> name. But assuming EXEC == dcopname really is just an assumption.
If the DCOP-Service type is "wait" we need to wait till the process exits
instead of waiting for it to register.
Cheers,
Waldo
--
bastian at kde.org | SuSE Labs KDE Developer | bastian at suse.com
More information about the kde-core-devel
mailing list