Detect new available names in bus

Sergio Costas rastersoft at gmail.com
Tue Feb 15 15:27:09 UTC 2022


Hi:

El 15/2/22 a las 14:36, Thomas Kluyver escribió:
>  From my reading of the spec it makes sense that NameOwnerChanged is only triggered when an application actually runs, connects to D-Bus and claims the name. 'Owner' seems to refer to a D-Bus connection (see e.g. the description of GetNameOwner). So registering a name for activation is not sufficient to 'own' it. On my system, NameHasOwner is True only for names with an active connection, though this is different from what Sergio said in his original message.
Mmm... odd... I did some extra tests and you are right: 'NameHasOwner' 
only returns True if the service is running. Probably I missed an 
instance of File-roller while doing my tests.

-- 
Nos leemos
		         RASTER    (Linux user #228804)
rastersoft at gmail.com                https://www.rastersoft.com



More information about the dbus mailing list