From: Colin Clark Date: Tue, 22 Jun 2021 10:42:34 +0000 (+0100) Subject: Ref #559: Geeqie won't start if clutter fails to init X-Git-Tag: v1.7~93 X-Git-Url: http://geeqie.org/cgi-bin/gitweb.cgi?p=geeqie.git;a=commitdiff_plain;h=2bb3245787c9caab6b881a1b09cee8b9dcd43269 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. --- 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); } }