[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-14 23:41:01
Message-ID: cc03144f-d3b2-5d03-2bf5-0baac6093f76 () gmail ! com
[Download RAW message or body]

El 15/2/22 a las 0:37, Thiago Macieira escribió:
> On Monday, 14 February 2022 14:51:48 PST Sergio Costas wrote:
> > I want to detect if the user has installed a service that offers the
> > well-known name "org.gnome.ArchiveManager1" (usually it is offered by
> > file-roller). I can do a call to "NameHasOwner()" and it will return
> > TRUE if that name is registered, even if the service is not active
> > (because it is launched on demand), or FALSE if it isn't available
> > (because the package "file-roller" isn't installed).
> If the service is activatable, you can use ListActivatableNames in the bus.
> 
> On my system:
> $ qdbus org.freedesktop.DBus / ListActivatableNames | grep -F org.gnome
> org.gnome.Identity
> org.gnome.OnlineAccounts
> org.gnome.keyring.SystemPrompter
> org.gnome.keyring.PrivatePrompter
> 
But is there a signal that notifies that a new activatable name has been added to, or \
removed from the bus? What I want to avoid is doing polling...


-- 
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