uuid not getting generated until after install

Thiago Macieira thiago at kde.org
Tue May 13 06:58:52 PDT 2008


On Tuesday 13 May 2008 15:16:42 Havoc Pennington wrote:
> >  So, if a tool needs to check if it can connect to the bus, it should try
> >  to connect to the bus. I assume it wants to do something after it
> >  connects anyways. There's no point in connecting to the bus if you're
> > not going to do anything with that.
>
> If you're connecting to the bus but then are going to use a service
> only if that service is already running, then not autolaunching does
> make sense to me. There are reasons to "peek" at a service, for
> example if you want to monitor which song is playing in a music
> player, you don't want to start the player, just watch it if it's
> running. 

Sorry, that's a bad example. The music player should emit a signal when it 
changes song. Polling is not a good idea.

Also, if you want to call a service only if it is already running, you can set 
the do-not-start flag on the message.

> Or, if gconftool really were doing a per-user task here, I 
> think it would be wrong to start the bus in order to shut down gconfd.

Ok, that's a valid use-case now :-)

So I agree we should have a connect-to-bus-but-don't-launch-if-not-running 
mode.

> >  But, in this particular case, since we are talking about program
> >  installation, I have to really question why it wants to connect to the
> >  *session* bus. That seems just plain broken to me: why is specifically
> >  the session in which the installation happening more important than all
> >  of the other sessions?
>
> This is quite true. I think the code in gconftool is intended to deal
> with "make install" on a developer workstation when the developer is
> doing a source build, or something like that. It's quite a broken
> hack, really.

I suggest it be fixed there in the first place. The new feature to D-Bus is 
not anything critical, so gconf should not be depending on it to work 
properly.

-- 
  Thiago Macieira  -  thiago (AT) macieira.info - thiago (AT) kde.org
    PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.freedesktop.org/archives/dbus/attachments/20080513/73ca3521/attachment.pgp 


More information about the dbus mailing list