Bug 140104 - Doesn't work together with firefox
Summary: Doesn't work together with firefox
Status: RESOLVED FIXED
Alias: None
Product: akregator
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR wishlist
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-15 14:24 UTC by Gerhard Riener
Modified: 2007-07-04 14:05 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gerhard Riener 2007-01-15 14:24:43 UTC
Version:            (using KDE KDE 3.5.5)
Installed from:    Ubuntu Packages

When using firefox as default browser the subscription to feed usually works by clicking on the feed button in the address panel.  I have specified akregator as my default feed reader in firefox, however by clicking on the RSS button nothing happens, so I have to fill in the feeds manually, whic is kind of a pain...
Comment 1 Eckhart Wörner 2007-01-15 22:37:23 UTC
Hi,

the reason for this is that running
akregator <feed>
does not add the feed to the feed list, it has to be
akregator -a <feed>

For now, the solution would be to create a script with the content:
akregator -a $1
and then open feeds in firefox with this script.
Comment 2 Teemu Rytilahti 2007-01-17 01:46:27 UTC
Yup, this is known problem. What do you think Frank, should Akregator just treat the unrecognized parameter as an url?
Comment 3 Teemu Rytilahti 2007-07-04 14:05:42 UTC
SVN commit 683223 by rytilahti:

Allow adding new feed with directly calling "akregator <url>" like for example firefox want to do it. Oh, and my first commit for a year to svn o/

BUGS:140104


 M  +1 -0      akregator_options.h  
 M  +6 -0      main.cpp  


--- trunk/KDE/kdepim/akregator/src/akregator_options.h #683222:683223
@@ -38,6 +38,7 @@
 	options.add( "g" );
 	options.add( "group <groupname>", ki18n( "When adding feeds, place them in this group" ), "Imported");
 	options.add( "hide-mainwindow", ki18n( "Hide main window on startup" ));
+	options.add( "+[url]", ki18n( "Add a feed with the given URL" ) );
 	return options;
 }
 
--- trunk/KDE/kdepim/akregator/src/main.cpp #683222:683223
@@ -73,6 +73,12 @@
     for (QStringList::ConstIterator it = feeds.begin(); it != end; ++it)
         feedsToAdd.append(*it);
 
+    if (feedsToAdd.isEmpty() && args->count() > 0) {
+        QString url = args->url(0).url();
+        if(!url.isEmpty())
+            feedsToAdd.append(url);
+    }
+
     if (!feedsToAdd.isEmpty())
         akr.call("addFeedsToGroup", feedsToAdd, addFeedGroup );