From dea3e200eafe35b45aaf57bede810d41ebcb2803 Mon Sep 17 00:00:00 2001 From: Sebastian Ramacher Date: Fri, 1 Jun 2018 21:42:22 +0200 Subject: [PATCH] Log g_spawn_async error --- zathura/links.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/zathura/links.c b/zathura/links.c index e8337f4..93e5ed3 100644 --- a/zathura/links.c +++ b/zathura/links.c @@ -258,7 +258,11 @@ link_remote(zathura_t* zathura, const char* file) NULL }; - g_spawn_async(NULL, argv, NULL, G_SPAWN_SEARCH_PATH, NULL, NULL, NULL, NULL); + GError* error = NULL; + if (g_spawn_async(NULL, argv, NULL, G_SPAWN_SEARCH_PATH, NULL, NULL, NULL, &error) == FALSE) { + girara_error("Failed to execute synctex command: %s", error->message); + g_error_free(error); + } g_free(uri); g_free(dir);