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

List:       freedesktop-dbus
Subject:    Re: Detect new available names in bus
From:       Lawrence D'Oliveiro <ldo () geek-central ! gen ! nz>
Date:       2022-02-17 4:52:50
Message-ID: 20220217175250.056de2c9 () theon ! geek-central ! gen ! nz
[Download RAW message or body]

On Tue, 15 Feb 2022 14:13:32 +0100, Sergio Costas wrote:

> About NameOwnerChanged, it only notifies when a daemon actually
> acquires a name, but that requires it to be launched. This means that
> an activatable service won't emit that unless any of their methods is 
> called, thus loading the daemon. Again, that's not what I need. What
> I need is to detect when the .service file is added or removed.

Is there any reason why bus peers need to be aware of the difference
between an "activatable" service and one which is already running?

It seems to me a lot of this complexity would go away if the D-Bus
daemon preregistered the names for such services on the bus. What would
the cost be? Only in a few dozen or a few hundred bytes of memory in its
name tables.
[prev in list] [next in list] [prev in thread] [next in thread] 

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