Bug 169024 - KDE 4 Konsole DBus introspection
Summary: KDE 4 Konsole DBus introspection
Status: RESOLVED FIXED
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Unlisted Binaries Linux
: NOR normal
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-13 11:16 UTC by Florian Jauernig
Modified: 2009-05-04 18:27 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
DBus patch for 4.1 (23.44 KB, patch)
2009-02-22 20:48 UTC, Kurt Hindenburg
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Jauernig 2008-08-13 11:16:37 UTC
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?
Comment 1 Robert Knight 2008-08-13 12:41:59 UTC
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.
Comment 2 Florian Jauernig 2008-08-13 13:12:51 UTC
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
Comment 3 Mads Bondo Dydensborg 2009-01-07 23:29:18 UTC
I too would like this. My exact usecase, actually.
Comment 4 Kurt Hindenburg 2009-02-22 20:48:49 UTC
Created attachment 31553 [details]
DBus patch for 4.1

From Konsole mailing list
http://lists.kde.org/?l=konsole-devel&m=123100564132457&w=2
Comment 5 Kurt Hindenburg 2009-03-13 06:37:58 UTC
Has anyone patched a recent 4.2 or trunk?  If not I may break this patch up to slowly apply it.
Comment 6 Kurt Hindenburg 2009-03-20 15:43:02 UTC
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
Comment 7 Kurt Hindenburg 2009-04-12 02:27:20 UTC
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
Comment 8 Kurt Hindenburg 2009-04-21 17:02:10 UTC
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
Comment 9 Kurt Hindenburg 2009-05-03 18:29:49 UTC
I believe I've committed all of the patch from Arno Töll.

Open seperate wishlist for any other dbus calls you want.
Comment 10 Florian Jauernig 2009-05-04 09:50:48 UTC
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?
Comment 11 Robert Knight 2009-05-04 18:27:56 UTC
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.