From 2bb3245787c9caab6b881a1b09cee8b9dcd43269 Mon Sep 17 00:00:00 2001 From: Colin Clark Date: Tue, 22 Jun 2021 11:42:34 +0100 Subject: [PATCH] Ref #559: Geeqie won't start if clutter fails to init https://github.com/BestImageViewer/geeqie/issues/559 Use Zenity to display a GUI message in addition to the console error. --- src/main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.c b/src/main.c index a70b7fa0..fd3343ee 100644 --- a/src/main.c +++ b/src/main.c @@ -42,6 +42,7 @@ #include "layout.h" #include "layout_image.h" #include "layout_util.h" +#include "misc.h" #include "options.h" #include "remote.h" #include "secure_save.h" @@ -1035,6 +1036,7 @@ gint main(gint argc, gchar *argv[]) if (gtk_clutter_init(&argc, &argv) != CLUTTER_INIT_SUCCESS) { log_printf("Can't initialize clutter-gtk.\nStart Geeqie with the option \"geeqie --disable-clutter\""); + runcmd("zenity --error --title=\"Geeqie\" --text \"Can't initialize clutter-gtk.\n\nStart Geeqie with the option:\n geeqie --disable-clutter\" --width=300"); exit(1); } } -- 2.20.1