KDE 4.x has changed many of the ways we work from its predecessor, KDE 3.5. Upgrading to this version I have realized that adding an rss feed to Akregator, my reader of choice, no longer worked. This is because dcop has been replaced with d-bus. Similar to dcop we can find out how to convert our dcop calls for use 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
So with this we can come up with a sh script that will add feeds to Akregator when clicking on the rss icon in the location bar.
#!/bin/bash # check to see if akregator is running # if not start akregator if [ -z `/sbin/pidof akregator`] then akregator fi for f in "${@/feed/http}"; do # 4.x qdbus call qdbus org.kde.akregator /Akregator \ org.kde.akregator.part.addFeedsToGroup "$f" "Firefox Subscribed" # 3.x dcop call # dcop akregator AkregatorIface addFeedsToGroup "[" "$f" "]" "Firefox Subscribe" done
You can copy and paste the above code into a file with executable permissions and associate the rss type with this script from within firefox.
Below you can download a file and put it somewhere that firefox has access.
Thanks for this script, works fantastically! I’ve been bugged by the lack of Akregator integration in Firefox for a while, but unfortunately didn’t/don’t have the know-how to fix it myself.
Unfortunately, the script doesn’t seem to work with podcast feeds (for example this one here: http://radiofrance-podcast.net/podcast09/rss_11252.xml). Do you happen to know why, and how to fix it?
Cheers,
Robert
Hello from Russia!
Can I quote a post in your blog with the link to you?
Hi! Depressing klooper regardless of my english jer, buti special charming re application .
Dear Author http://www.littlepiphany.com !
I am sorry, that has interfered… I understand this question. It is possible to discuss. Write here or in PM.
Hallo, bin grade auf Dein Post gestossen und eine Frage: Gibt es die Möglichkeit das Script so zu modifieren, dass Akregator nach der passenden Gruppe fragt und den Feed nicht automatisch einsortiert?
it was very interesting to read http://www.littlepiphany.com
I want to quote your post in my blog. It can?
And you et an account on Twitter?
I would like to exchange links with your site http://www.littlepiphany.com
Is this possible?