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.
This commit is contained in:
Christian Dywan 2011-05-01 06:57:41 +02:00
parent ee39b5c87b
commit ad99d10433

View file

@ -2341,7 +2341,14 @@ midori_browser_subscribe_to_news_feed (MidoriBrowser* browser,
const gchar* uri)
{
if (browser->news_aggregator && *browser->news_aggregator)
{
/* 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,