[prev in list] [next in list] [prev in thread] [next in thread]
List: freedesktop-dbus
Subject: Re: Detect new available names in bus
From: Sergio Costas <rastersoft () gmail ! com>
Date: 2022-02-19 11:52:17
Message-ID: fc154aa1-b7a1-77ba-80e2-cf0b4a003d45 () gmail ! com
[Download RAW message or body]
El 17/2/22 a las 5:52, Lawrence D'Oliveiro escribió:
> 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?
>
Well, at least for some proxy classes I suspect that it is important to
know if a service is running or not. At least one proxy (the GLib one)
does cache the property values and simplifies connecting signals to a
DBus object. If the remote server is killed but remains activatable, the
proxy needs to know it to invalidate the cache; and when it is launched
again, it needs to know it to reconnect the signals.
> --
> Nos leemos
> RASTER (Linux user #228804)
> rastersoft@gmail.com https://www.rastersoft.com
>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic