Print errors from launching new instances

This commit is contained in:
Přemysl Eric Janouch 2022-07-21 16:26:06 +02:00
parent d3b34cd482
commit e03bc36f63
Signed by: p
GPG Key ID: A0420B94F92B9493

8
fiv.c
View File

@ -873,9 +873,11 @@ spawn_uri(const char *uri)
{
char *argv[] = {PROJECT_NAME, (char *) uri, NULL};
GError *error = NULL;
g_spawn_async(
NULL, argv, NULL, G_SPAWN_SEARCH_PATH, NULL, NULL, NULL, &error);
g_clear_error(&error);
if (!g_spawn_async(
NULL, argv, NULL, G_SPAWN_SEARCH_PATH, NULL, NULL, NULL, &error)) {
g_warning("%s", error->message);
g_error_free(error);
}
}
static void