Chapter 4. Scripting Konsole

Konsole does support numerous methods that can be used with D-Bus.

There are two ways to use the D-Bus interface: Qt™'s GUI qdbusviewer and the command line qdbus.

Examples:

  • % qdbus will display all services available.

  • % qdbus org.kde.konsole will display the D-Bus interface for Konsole.

  • % qdbus org.kde.konsole /Windows/1 will display methods for controlling window 1.

  • % qdbus org.kde.konsole /Sessions/1 will display methods for controlling session 1.

If you start Konsole from a terminal you may need to change org.kde.konsole to org.kde.konsole-`pidof -s konsole`.

For more information, please visit D-Bus tutorial.