Bug 208732

Summary: adding feed from browser or command line fails when akregator is already running
Product: [Applications] akregator Reporter: Brice Hunt <shoalcreek5>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED WORKSFORME    
Severity: normal CC: shoalcreek5, tim
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:

Description Brice Hunt 2009-09-28 01:32:18 UTC
Version:           1.5.1 (using 4.3.1 (KDE 4.3.1), Debian packages)
Compiler:          cc
OS:                Linux (i686) release 2.6.30-1-686

Hope this isn't a duplicate, but I couldn't find the bug listed.

To exhibit the bug, start Akregator and minimize it to the system tray. Open a terminal and type:

[code]
akregator http://www.npr.org/rss/rss.php?id=1049
[/code]

The Akregator window maximizes, Akregator prints an error message in the terminal window, and nothing else happens. The expected behavior is to actually add the feed after maximizing the window (I would also still expect the error message about Akregator already running).

This behavior is not exhibited when Akregator is not already running. Akregator works properly in that case.

The reason why this is important is because, while browsing the web, it is very useful to add feeds just by clicking the feed link and having the browser pass the feed link to the feed reader that the browser has been told to start and have the feed reader automatically add the feed to list.

For a temporary workaround, I have made a simple script that I can call from the browser that will kill Akregator and then restart it, passing the feed url that it was passed by the browser. Something like this:

[code]
#!/bin/bash

# Kill akregator
killall akregator

# Restart akregator
akregator "$1"
[/code]

I did notice that you have changed the command line to be more friendly toward web browsers. I have used Akregator for several years now, and I really thank you for your work and improvements in the program.
Comment 1 Michal Yogi Práznovský 2009-09-28 11:22:45 UTC
On Mandriva 2010.0 Cooker x86_64 with KDE 4.3.1 this work without problem.
Comment 2 Brice Hunt 2009-09-28 15:28:00 UTC
I think this bug is going to be one of those annoying, random bugs that might actually be caused by something else (e.g. current system state). I just tried to reproduce it again (I haven't even logged out from when I reported it) and I could not reproduce it. Akregator worked as expected this time, even clicking RSS links from the browser--and no, I was not using my script. The only thing that has really changed in my system is that I added the apticron package for Debian and its dependencies.

So unless someone objects and re-opens the bug, I will change its status to "RESOLVED".
Comment 3 Tim Landscheidt 2014-01-22 20:58:31 UTC
I encounter the same problem with 4.11.5, with either "akregator $FEED" or "akregator -a $FEED -g $GROUP".  What works for me is D-Bus, i. e. "qdbus org.kde.akregator /Akregator org.kde.akregator.part.addFeedsToGroup $FEED $GROUP".