5 ms·
Is there an easy way with KDE4/dbus to get functionality similar to KDE3/dcop? Example task: 1) inspect running konsole task to find exposed interfaces 2) fi
by jbert 12y ago
Is there an easy way with KDE4/dbus to get functionality similar to KDE3/dcop?
Example task:
1) inspect running konsole task to find exposed interfaces
2) find one related to background colour
3) script up "change background colour to red in current konsole" command
Last time I looked at the KDE+dbus situation (early KDE4) it seemed this was really hard.
- guard-of-terra 12y agoI hated dbus from the moment it was conceived. Even if we forget Gnome's track record for infrastructure, it was notoriously command-line-hostile. So I guess DCOP is bye bye and dbus is no good.
- catern 12y agoYes. An easy way for someone not familiar with dbus: Use d-feet (should be in your repos) to find the running Konsole and the relevant interface, activate it and play around with it inside d-feet, and then activate it on the command line with dbus-send (you'll need to read dbus-send(1) to get the syntax). Or you could try: https://code.google.com/p/dbus-tools/wiki/DBusCli https://code.google.com/p/dbus-tools/wiki/DBusCli or http://www.bramschoenmakers.nl/en/node/609 http://www.bramschoenmakers.nl/en/node/609
- emilsedgh 12y agoOf course. It's DBUS. You can trigger dbus functions using QDbus. `qdbus org.kde.konsole` shows you available functionality. Browse through it.
- jbert 12y agoThanks. qdbusviewer shows some available interfaces. Looks like a bunch of konsole stuff never got implemented as dbus interfaces in KDE4. This specific use case seems to be covered by the konsoleprofile command (I wonder why the devs chose that route instead of exposing a dbus interface).