On my home computer, I use Linux as Kubuntu 10.04, because has long been imbued with the functionality of the KDE desktop. I cannot imagine a KDE user who would not use a very convenient Yakuake terminal emulator. And everything would be fine, but recently I wanted to start some system utilities (for example, htop and rtorrent) when starting the system, in different Yakuake sessions. The man yakuake and yakuake --help commands prompted. that you should not wait for simple solutions. Somehow the words of a classic surfaced in my head: “Follow me, reader!Who told you that there is no true, true, eternal love in the world?Let a liar cut off his vile language!For me, my reader, and only for me, and I will show you such love! ”
... a detective investigation involving Google suggested that the solution to the problem should be sought in the use of the d-bus system calls. For these purposes, the qdbusviewer utility from the qt4-dev-tools package was used. The sorrowful interface of the utility did not prevent to find the necessary commands: ')
qdbus org.kde.yakuake /yakuake/sessions runCommand rtorrent # rtorrent qdbus org.kde.yakuake /yakuake/sessions addSession # qdbus org.kde.yakuake /yakuake/sessions runCommand htop # htop
Placing these lines in the script, and the script in the KDE startup, we get the desired one.