Linux Commands Examples

A great documentation place for Linux commands

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

: email address (won't be displayed)
: name

Step 2

Thanks for this example ! - It will be moderated and published shortly.

Feel free to post other examples
Oops ! There is a tiny cockup. A damn 404 cockup. Please contact the loosy team who maintains and develops this wonderful site by clicking in the mighty feedback button on the side of the page. Say what happened. Thanks!

examples

0
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
0
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
0
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

How can this site be more helpful to YOU ?


give  feedback