[kde-linux] akregator & firefox

Kevin Krammer kevin.krammer at gmx.at
Thu Feb 26 12:11:22 UTC 2009


On Thursday 26 February 2009, paul s wrote:
> hi -
>
> i am using kde 4.2 and use to be able to add rss feeds to akregator
> using dcop... i guess dcop has been replaced with d-bus in 4.2... so i
> could add feeds before by using :
>
> dcop akregator AkregatorIface addFeedsToGroup "[" "$f" "]" "folder"
>
> this would also do it in the background and not bring akregator forward...
>
> how could this be accomplished with d-bus?

The qdbus tool works quite similar to how dcop worked, e.g. if you invoke it 
without any parameters it will list all processes (actually all D-Bus 
connections [1]).

If you pass one such name as its first parameter, it will list all objects 
inside the application. If you add one object it will list all its methods.

So a starting point for your DCOP call above would be
qdbus org.kde.akregator /Akregator org.kde.akregator.part.addFeedsToGroup

Not sure though how qdbus handles lists, you'll have to experiement on that.

Cheers,
Kevin

[1] A D-Bus connection always has at least one unique name, something that 
looks like this
:1.6

Applications can additionally register "well known names" that can only be 
owned by one process at a given time. If a connection has such an additional 
name, it will be listed after the unique name like this:
:1.6
 org.kde.akregator

-- 
Kevin Krammer, KDE developer, xdg-utils developer
KDE user support, developer mentoring
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-linux/attachments/20090226/624edde5/attachment.sig>


More information about the kde-linux mailing list