[英]How can i display the interfaces inside a particular object path in DBus
I need to use a terminal command. 我需要使用终端命令。 I can use gdbus also.
我也可以使用gdbus。 I have the bus name the object path i need to display all the interface inside the object path
我有总线名称对象路径,我需要在对象路径中显示所有接口
If you have the gdbus
command line tool you should be able to do something like this: 如果您拥有
gdbus
命令行工具,则应该可以执行以下操作:
gdbus introspect --session --object-path <your object path here> --dest <your bus name here> --xml --recurse
For example, to introspect PulseAudio on my machine I can do: 例如,要在我的机器上自检PulseAudio,可以执行以下操作:
gdbus introspect --session --object-path /org/pulseaudio/server_lookup1 --dest org.PulseAudio1 --xml --recurse
In the XML produced you should be able to see, among other things, the names of interfaces. 在生成的XML中,您应该能够看到接口的名称。
On my Debian machine gdbus
comes from the package libglib2.0-bin
. 在我的Debian机器
gdbus
来自包libglib2.0-bin
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.