Skip to content

IBM developerWorks: Connect KDE applications using DCOP

Thursday, 4 March 2004  |  Binner

Martyn Honeyford from IBM's UK Labs introduces KDE's desktop communication protocol (DCOP) on the IBM developerWorks site. He describes how to utilize it with the graphical kdcop and the command line dcop utilities with several examples such as instantly messaging a contact in Kopete when he comes online and also how to create a simple DCOP-aware application.

Comments:

Great article - Nicolas Blanco - 2004-03-04

this is a great article for those who want to discover DCOP ! Thanks Martyn. I would like to know if it is possible with DCOP to get all the windows names that are opened in the kicker and force an application to "blink" in the kicker. I would like to create a script for a non-KDE application that notify the user for an event in the application. thanks if you have any idea.

Re: Great article - Anonymous - 2004-03-04

Should be possible with one of the "dcop knotify default notify" functions if you know the right parameters. Who knows these? :-)

Re: Great article - David Faure - 2004-03-08

From kdelibs/arts/knotify/notify.h: void notify(const QString &event, const QString &fromApp, const QString &text, QString sound, QString file, int present, int level, int winId, int eventId); No idea what they mean though :)

dcop params - Krishna Sethuraman - 2006-12-13

Here you go: dcop knotify Notify notify notify Me "Segmentation fault!" nosound nofile 2 0 From http://women.kde.org/tips/kdetips.php .

dcopstart - AC - 2004-03-04

I wonder why the article didn't use 'dcopstart'. It seems to me that this: konqueror & dcop konqueror-$! etc would have a tendency to break, depending on how fast konqueror started up.

bring top and dcop - milan - 2004-03-05

Hello, How is possible to bring a window in front of others? eg. bring Konsole window to top. Thanks.

Re: bring top and dcop - he-sk - 2004-03-05

dcop_id = `dcop | grep konsole | head -n 1` dcop $dcop_id konsole-mainwindow#1 raise dcop $dcop_id konsole-mainwindow#1 focus Or something along the lines should do it.

Virtual Desktop - Idan Waisman - 2004-07-03

First, this is an inspiring article. But the first thing I wanted to script is mystifyingly elusive. Is there a way to determine a particular window's current virtual desktop? The idea being to, upon some event, check to see if that window is on a different desktop and, if so, move it to the current desktop. Searching the DCOP methods I cannot find any way to do this. I have found no information anywhere pertaining to the manipulation of virtual desktop related info via DCOP, sadly. Thanks.