← 返回命令列表

Linux command

qdbus 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

List D-Bus services

qdbus

List service objects

qdbus [org.freedesktop.DBus]

Call method

qdbus [service] [object] [method]

Get property

qdbus [service] [object] [property]

说明

qdbus is a Qt-based command-line tool for interacting with D-Bus services on Linux desktops. It can list available services, browse their object hierarchies, read and write properties, and call methods, making it useful for debugging, scripting, and integrating with desktop applications. When invoked without arguments, it lists all services on the session bus. Adding a service name shows its object paths, and adding an object path shows its interfaces and methods. The --system flag switches to the system bus for interacting with system-level services like NetworkManager or systemd.

参数

--system
Use system bus.
--session
Use session bus.
--literal
Print literal reply.

FAQ

What is the qdbus command used for?

qdbus is a Qt-based command-line tool for interacting with D-Bus services on Linux desktops. It can list available services, browse their object hierarchies, read and write properties, and call methods, making it useful for debugging, scripting, and integrating with desktop applications. When invoked without arguments, it lists all services on the session bus. Adding a service name shows its object paths, and adding an object path shows its interfaces and methods. The --system flag switches to the system bus for interacting with system-level services like NetworkManager or systemd.

How do I run a basic qdbus example?

Run `qdbus` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does --system do in qdbus?

Use system bus.