PDA

View Full Version : [gnome] dbus bus name



luca31
September 13th, 2018, 07:43 PM
Hi all, if an application uses dbus for signaling o ipc, is there a way to get its bus name in order to be able to do introspection/monitoring on its objects with gdbus?
In other words where/how I can find the well known bus name of an app? Is there a way to catch it on the bus?

thanks

Luca

luca31
September 13th, 2018, 11:54 PM
I managed to get the list of bus name using the /org/freedesktop/DBus object that reside in the org.freedesktop.DBus bus name (rappresenting the bus itself)
$ gdbus call --system --dest org.freedesktop.DBus --object-path /org/freedesktop/DBus --method org.freedesktop.DBus.ListNames
$ gdbus call --session --dest org.freedesktop.DBus --object-path /org/freedesktop/DBus --method org.freedesktop.DBus.ListNames

regards

Luca