With KDE4, it should be used qdbusto manage KDE applications (instead of legacy and remote DCOPs). For example, to change the title of the first session, you can use:
qdbus org.kde.yakuake /Sessions/1 org.kde.konsole.Session.setTitle 1 "New title"
You can use to explore the available interfaces, methods, and properties qdbusviewer.
As a homework, try to get a list of active sessions (before you are going to change smth.).
source
share