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:
parent
ee39b5c87b
commit
ad99d10433
1 changed files with 8 additions and 1 deletions
|
@ -2341,7 +2341,14 @@ midori_browser_subscribe_to_news_feed (MidoriBrowser* browser,
|
||||||
const gchar* uri)
|
const gchar* uri)
|
||||||
{
|
{
|
||||||
if (browser->news_aggregator && *browser->news_aggregator)
|
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);
|
sokoke_spawn_program (browser->news_aggregator, uri);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
gchar* description = g_strdup_printf ("%s\n\n%s", uri,
|
gchar* description = g_strdup_printf ("%s\n\n%s", uri,
|
||||||
|
|
Loading…
Reference in a new issue