From: Christian Dywan Date: Sun, 1 May 2011 04:57:41 +0000 (+0200) Subject: Special-case Liferea because a helper script may be required X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ad99d10433f806a208df414ac2268aebfd6fa0a1;p=midori Special-case Liferea because a helper script may be required The script is usually installed but not used unless the user manually picks it, which is far from user-friendly. --- diff --git a/midori/midori-browser.c b/midori/midori-browser.c index 4d982e80..9f528279 100644 --- a/midori/midori-browser.c +++ b/midori/midori-browser.c @@ -2341,7 +2341,14 @@ midori_browser_subscribe_to_news_feed (MidoriBrowser* browser, const gchar* uri) { if (browser->news_aggregator && *browser->news_aggregator) - sokoke_spawn_program (browser->news_aggregator, uri); + { + /* Special-case Liferea because a helper script may be required */ + if (g_str_equal (browser->news_aggregator, "liferea") + && g_find_program_in_path ("liferea-add-feed")) + sokoke_spawn_program ("liferea-add-feed", uri); + else + sokoke_spawn_program (browser->news_aggregator, uri); + } else { gchar* description = g_strdup_printf ("%s\n\n%s", uri,