From 9ae81c0000f840f023011d05fb7c948c5baf5600 Mon Sep 17 00:00:00 2001 From: Sebastian Ramacher Date: Fri, 13 Jan 2012 19:35:38 +0100 Subject: [PATCH] need G_SPAWN_SEARCH_PATH here --- callbacks.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/callbacks.c b/callbacks.c index 2ea4699..eb50328 100644 --- a/callbacks.c +++ b/callbacks.c @@ -125,7 +125,7 @@ cb_index_row_activated(GtkTreeView* tree_view, GtkTreePath* path, } else if (index_element->type == ZATHURA_LINK_EXTERNAL) { char* argv[3] = { "xdg-open", index_element->target.uri, NULL }; GError* error = NULL; - if (!g_spawn_async(NULL, argv, NULL, 0, NULL, NULL, NULL, &error)) { + if (!g_spawn_async(NULL, argv, NULL, G_SPAWN_SEARCH_PATH, NULL, NULL, NULL, &error)) { girara_notify(zathura->ui.session, GIRARA_ERROR, "Failed to run xdg-open: %s", error->message); g_error_free(error); }