This forum has been archived. All content is frozen. Please use KDE Discuss instead.

from dcop to d-bus

Tags: None
(comma "," separated)
mikmach
Registered Member
Posts
19
Karma
0
OS

from dcop to d-bus

Fri Dec 26, 2008 1:29 pm
Hello,

In KDE3 I utilised many dcop actions in connection with khotkeys. I've had two wonderful tools to discover power of dcop: kdcop and zsh completion functions (provided by kdesdk).

How to do that in KDE4?


mikmach, proud to be a member of KDE forums since 2008-Dec.
User avatar
anda_skoa
KDE Developer
Posts
783
Karma
4
OS

RE: from dcop to d-bus

Fri Dec 26, 2008 3:38 pm
There is qdbusviewer (and probably non Qt based viewers as well).

kde-apps.org also lists two such programs, kdbus an QDBusGUI

The commandline completion could probably be adapted for the output of qdbus, its reaction is quite similar to that of the dcop tool.

Cheers,
_


anda_skoa, proud to be a member of KDE forums since 2008-Oct.
User avatar
beermad
Registered Member
Posts
104
Karma
0
OS

RE: from dcop to d-bus

Sat Dec 27, 2008 10:59 am
anda_skoa wrote:There is qdbusviewer (and probably non Qt based viewers as well).

kde-apps.org also lists two such programs, kdbus an QDBusGUI



I'm sure there's a very good reason why the command-line syntax for dbus-send is so impenetrably complex, but I haven't worked it out yet.

Unfortunately kdbus takes a ridiculous amount of time just to initialise itself and then is incredibly slow to do anything once it's there. And the source posted for QDBusGUI is so bug-ridden it won't even compile (as someone even commented on the download page).


User avatar
anda_skoa
KDE Developer
Posts
783
Karma
4
OS

RE: from dcop to d-bus

Sat Dec 27, 2008 1:24 pm
dbus-send has the advantage that it really takes all information from the commandline, e.g. parameter types. It can also be used to emit D-Bus signals.

qdbus is way easier to use but for that it relies on the target's ability to serve correct D-Bus introspection data.

qdbus and qbusviewer should be part of one of the Qt packages (I think qdbus comes with QtDBus and qdbusviewer with the Qt tools)

Cheers,
_


anda_skoa, proud to be a member of KDE forums since 2008-Oct.


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot]