Blame SOURCES/im-chooser-run-gnomecc-on-gnome.patch

61f539
diff -pruN im-chooser-1.6.4.orig/libimchooseui/imchooseui.c im-chooser-1.6.4/libimchooseui/imchooseui.c
61f539
--- im-chooser-1.6.4.orig/libimchooseui/imchooseui.c	2013-01-18 03:19:42.000000000 +0000
61f539
+++ im-chooser-1.6.4/libimchooseui/imchooseui.c	2019-02-25 10:51:13.828775637 +0000
61f539
@@ -267,6 +267,14 @@ _imchoose_ui_update_list(IMChooseUI *ui,
61f539
 		n_retry++;
61f539
 		goto retry;
61f539
 	}
61f539
+	if (!imsettings_client_is_supported_desktop(client, NULL, &err)) {
61f539
+		if (err) {
61f539
+			g_error_free(err);
61f539
+			err = NULL;
61f539
+		}
61f539
+		g_spawn_command_line_async("gnome-control-center region", &err;;
61f539
+		goto bail;
61f539
+	}
61f539
 
61f539
 	active_info = imsettings_client_get_active_im_info(client, NULL, &err;;
61f539
 	if (err)
61f539
@@ -739,7 +747,8 @@ imchoose_ui_get(IMChooseUI  *ui,
61f539
 
61f539
 	retval = GTK_WIDGET (g_object_ref(gtk_builder_get_object(builder, "root")));
61f539
 	g_object_set_data(tree, "imchoose-ui", ui);
61f539
-	_imchoose_ui_update_list(ui, GTK_WIDGET (tree), &err;;
61f539
+	if (!_imchoose_ui_update_list(ui, GTK_WIDGET (tree), &err))
61f539
+		retval = NULL;
61f539
 	if (err)
61f539
 		goto bail;
61f539
   bail:
61f539
diff -pruN im-chooser-1.6.4.orig/src/app/main.c im-chooser-1.6.4/src/app/main.c
61f539
--- im-chooser-1.6.4.orig/src/app/main.c	2013-04-12 07:55:59.000000000 +0000
61f539
+++ im-chooser-1.6.4/src/app/main.c	2019-02-25 10:52:30.564740513 +0000
61f539
@@ -209,6 +209,8 @@ main(int    argc,
61f539
 		}
61f539
 		goto bail;
61f539
 	}
61f539
+	if (!widget)
61f539
+		goto bail;
61f539
 	progress = imchoose_ui_get_progress_dialog(ui, &err;;
61f539
 
61f539
 	gtk_window_set_title(GTK_WINDOW (window), _("Input Method Selector"));