From 8735ccfcbbcfec156e9ccd4d5af0fb283c596a96 Mon Sep 17 00:00:00 2001 From: Sebastian Ramacher Date: Fri, 1 Jun 2018 21:34:47 +0200 Subject: [PATCH] Log g_spawn_async error --- zathura/synctex.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/zathura/synctex.c b/zathura/synctex.c index 9a46b09..833adfc 100644 --- a/zathura/synctex.c +++ b/zathura/synctex.c @@ -111,7 +111,11 @@ synctex_edit(const char* editor, zathura_page_t* page, int x, int y) argv[i] = temp; } - 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_strfreev(argv); }