Commit 4d6a885c authored by Emmanuel Lepage Vallee's avatar Emmanuel Lepage Vallee
Browse files

Fix regression

parent e9ae581b
......@@ -197,7 +197,7 @@ on_clicked(GtkTextBuffer *textbuffer UNUSED, GtkTextIter *location UNUSED, GtkTe
end_link = NULL;
if (strlen(text)) {
gchar* url_command = eel_gconf_get_string(MESSAGING_URL_COMMAND);
if (!strlen(url_command))
if (url_command && !strlen(url_command))
url_command = "xdg-open";
const gchar* argv[3] = {url_command,text,(char*)NULL};
g_spawn_async(NULL,(gchar**)argv,NULL,G_SPAWN_SEARCH_PATH|G_SPAWN_STDOUT_TO_DEV_NULL|G_SPAWN_STDERR_TO_DEV_NULL,NULL,NULL,NULL,NULL);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment