qdbus

a communication-interface for qt-based applications

TLDR

List available service names

$ qdbus
copy

List object paths for a specific service

$ qdbus [service_name]
copy

List methods, signals and properties available on a specific object

$ qdbus [service_name] [/path/to/object]
copy

Execute a specific method passing arguments and display the returned value

$ qdbus [service_name] [/path/to/object] [method_name] [argument1] [argument2]
copy

Display the current brightness value in a KDE Plasma session

$ qdbus [org.kde.Solid.PowerManagement] [/org/kde/Solid/PowerManagement/Actions/BrightnessControl] [org.kde.Solid.PowerManagement.Actions.BrightnessControl.brightness]
copy

Set a specific brightness to a KDE Plasma session

$ qdbus [org.kde.Solid.PowerManagement] [/org/kde/Solid/PowerManagement/Actions/BrightnessControl] [org.kde.Solid.PowerManagement.Actions.BrightnessControl.setBrightness] [5000]
copy

Invoke volume up shortcut in a KDE Plasma session

$ qdbus [org.kde.kglobalaccel] [/component/kmix] [invokeShortcut] "[increase_volume]"
copy

Display help

$ qdbus --help
copy

SYNOPSIS

qdbus [--system] [--literal] [servicename] [path] [method] [args]

DESCRIPTION

qdbus provides an interface to Qt-based applications communicating over D-Bus. See http://www.freedesktop.org/software/dbus/ for more informa‐ tion about the big picture. By default qdbus will list all service names of services that are run‐ ning and you can manipulate at the moment. You can also manipulate and run several types of methods for each dbus-enabled application. servicename the service to connect to (e.g., org.freedesktop.DBus) path the path to the object (e.g., /) method the method to call, with or without the interface args arguments to pass to the call

OPTIONS

--system connect to the system bus --literal print replies literally

EXAMPLE

Here is an example of using qdbus to list all status information about a service: % qdbus org.ktorrent.ktorrent

SEE ALSO

dbus-cleanup-sockets(1), dbus-launch(1), dbus-send(1), dbus-daemon(1), dbus-monitor(1), dbus-uuidgen(1) Tue, 02 Feb 2010 23:35:52 +0100 qdbus(1)

Copied to clipboard
Dodo Farming