Summary: | Doesn't work together with firefox | ||
---|---|---|---|
Product: | [Applications] akregator | Reporter: | Gerhard Riener <gerhard.riener> |
Component: | general | Assignee: | kdepim bugs <kdepim-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | wishlist | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
Gerhard Riener
2007-01-15 14:24:43 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. Yup, this is known problem. What do you think Frank, should Akregator just treat the unrecognized parameter as an url? 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 ); |