The script is usually installed but not used unless the user
manually picks it, which is far from user-friendly.
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,