Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Many every day actions in Ubuntu can be done easily from terminal using dbus. The main advantage is it can be done exactly the GUI does, using a one liner, such as change brightness, copy file, etc.

For example
To decrease brightness standard terminal method is
xbacklight +30% #-30%
while dbus method:
dbus-send --session --print-reply --dest="org.gnome.SettingsDaemon" /org/gnome/SettingsDaemon/Power org.gnome.SettingsDaemon.Power.Screen.SetPercentage uint32:30

To copy file
cp ./a/source ./b/destination
and
qdbus org.gnome.Nautilus /org/gnome/Nautilus org.gnome.Nautilus.FileOperations.CopyFile "file:///source/directory" "*" "file:///destination/directory" ""
In qdbus graphical indicators are displayed with speed and canel buttton.

So the dbus is something interesting and I really want to learn dbus stuff. Please guide my by providing some ebook, links, etc.

share|improve this question
add comment

1 Answer

up vote 5 down vote accepted

There is quite a concise list of documentations available from:

to learn basics and procedures when it comes to use dbus in our applications.

Another good resource for finding out how implemented dbus properties work is experimenting with dbus calls using the rather nice tool d-feet Install d-feet. With this you can inspect or call available dbus properties from the system or the session bus:

enter image description here

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.