qdbus
a communication-interface for qt-based applications
see also :
dbus-cleanup-sockets - dbus-launch - dbus-send - dbus-daemon - dbus-monitor - dbus-uuidgen
Synopsis
qdbus
[--system] [--literal] [servicename]
[path] [method] [args]
add an example, a script, a trick and tips
examples
source
yakuake
qdbus org.kde.yakuake /yakuake/sessions runCommand
"cd $HOME"
qdbus org.kde.yakuake /yakuake/tabs setTabTitle 1
"main"
qdbus org.kde.yakuake /yakuake/tabs setTabTitle 1 "main"
qdbus org.kde.yakuake /yakuake/sessions addSession
qdbus org.kde.yakuake /yakuake/sessions addSession
source
echo "==List of
services=="
qdbus
exit
fi
echo "==Objects of
service $SERVICE=="
qdbus $SERVICE
for o in `qdbus $SERVICE`;do
echo "===Methods for
object $o==="
qdbus $SERVICE $o
done
source
qdbus org.kde.kded /kded unloadModule networkmanagement
nm-applet &
description
qdbus
provides an interface to Qt-based applications communicating
over D-Bus. See http://www.freedesktop.org/software/dbus/
for more information about the big picture.
By default
qdbus will list all service names of services that
are running 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 ,
dbus-launch , dbus-send , dbus-daemon ,
dbus-monitor , dbus-uuidgen