Version: (using KDE 4.1.0) Installed from: Unspecified Linux OS: Linux I am using KDE 4.1 (amd64) from Debian experimental. In KDE 3.5.9 I used dcop to interoperate with konsole to open new tabs, renaming them, etc. In KDE 4(.1) I tried my luck using DBus but without success. For finding supported methods I used qdbusviewer, but for konsole I could not find any methods. For i.e. kmail, and kmix qdbusviewer showed me the needed methods and object paths and I was able to interoperate with kmail and kmix using dbus-send. I already posted this on the Debian-KDE mailing list and they pointed me to supply a bug report here. They also told me that providing information about objects and methods available is called introspection and that I should try to find out objects and paths using the org.kde.konsole.*.xml files. Either I had some error in my dbus-send syntax or dbus introspection is really broken. Could you please check this and either confirm that this is really a bug, or could you please be so kind and give me a working example, i.e. how to modify a tab name?
It isn't broken, it just doesn't exist. Writing a D-Bus interface is not a particularly difficult task I just haven't got around to it yet. If you or one of the other responders to the Debian mailing list thread is interested please get it touch.
Thanks for this quick reply. This explains why my trials in using D-Bus all failed;-) If you could implement a D-Bus interface for konsole me and at least one of my colleagues would be very happy! Unfortunately I am not familiar with C programming but if you need someone to test I would be happy in doing this for you! If you have another idea on how to solve my "problems" without using D-Bus I also would be happy. I used konsole with dcop previously for doing the following: 1. Calling kdialog prompting for an IP address 2. openening a new konsole window 3. opening 5 tabs in this new window 4. connect to the IP specified in kdialog via ssh in each of this tabs 5. cd'ing in every tab to another directory on the target host 5. renaming all tabs to provide an overview about where in directory I currently am
I too would like this. My exact usecase, actually.
Created attachment 31553 [details] DBus patch for 4.1 From Konsole mailing list http://lists.kde.org/?l=konsole-devel&m=123100564132457&w=2
Has anyone patched a recent 4.2 or trunk? If not I may break this patch up to slowly apply it.
SVN commit 941837 by hindenburg: An initial commit to get a working DBus interface working. CCBUG: 169024 M +8 -0 CMakeLists.txt M +13 -0 ViewManager.cpp M +5 -0 ViewManager.h M +7 -38 org.kde.konsole.Konsole.xml M +0 -6 org.kde.konsole.KonsoleScripting.xml M +0 -6 org.kde.konsole.SessionScripting.xml WebSVN link: http://websvn.kde.org/?view=rev&revision=941837
SVN commit 952482 by hindenburg: Implement org.kde.konsole.Konsole methods (minus activateSession). Thanks to Arno Töll for the big dbus patch that I'm breaking into smaller pieces. CCBUG: 169024 M +79 -0 ViewManager.cpp M +36 -0 ViewManager.h [POSSIBLY UNSAFE: gets] M +31 -7 org.kde.konsole.Konsole.xml WebSVN link: http://websvn.kde.org/?view=rev&revision=952482
SVN commit 957189 by hindenburg: Implements the session portion of the dbus interface. CCBUG: 169024 M +47 -1 Session.cpp M +117 -77 Session.h M +61 -2 org.kde.konsole.Session.xml WebSVN link: http://websvn.kde.org/?view=rev&revision=957189
I believe I've committed all of the patch from Arno Töll. Open seperate wishlist for any other dbus calls you want.
Many thanks to all of you who made dbus interaction possible in konsole. I am looking forward in interacting with my konsole windows from CLI again! As I am not familiar with KDE release management - will konsole dbus interaction be in KDE 4.2.x or will this be in KDE 4.3?
4.3 - Like most other projects, KDE has a policy of not adding major new features in minor releases. The 4.X.Y releases are for bug fixes or minor tweaks only - the idea being to reduce the risk of regressions.