mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2025-01-30 23:44:55 +01:00
Log g_spawn_async error
This commit is contained in:
parent
8735ccfcbb
commit
dea3e200ea
1 changed files with 5 additions and 1 deletions
|
@ -258,7 +258,11 @@ link_remote(zathura_t* zathura, const char* file)
|
||||||
NULL
|
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(uri);
|
||||||
g_free(dir);
|
g_free(dir);
|
||||||
|
|
Loading…
Reference in a new issue