News for hackers. Stuff that matters.
Re:KDE Ships Second Beta of Next Generation Plasma Workspace by jbert on Wednesday June 11, 2014 @08:18AM (#7877578)
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.

Re:KDE Ships Second Beta of Next Generation Plasma Workspace by catern on Wednesday June 11, 2014 @10:01AM (#7878013)
Yes. 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 or http://www.bramschoenmakers.nl/en/node/609
Re:KDE Ships Second Beta of Next Generation Plasma Workspace by emilsedgh on Wednesday June 11, 2014 @10:16AM (#7878088)
Of course. It's DBUS. You can trigger dbus functions using QDbus. `qdbus org.kde.konsole` shows you available functionality. Browse through it.
Re:KDE Ships Second Beta of Next Generation Plasma Workspace by jbert on Wednesday June 11, 2014 @11:50AM (#7878613)
Thanks. 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).

Re:KDE Ships Second Beta of Next Generation Plasma Workspace by guard-of-terra on Wednesday June 11, 2014 @09:28AM (#7877861)
I 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.