searchengine: Emit a simple warning when tracker init failed
authorGaël Bonithon <gael@xfce.org>
Thu, 9 Feb 2023 18:26:47 +0000 (19:26 +0100)
committerGaël Bonithon <gael@xfce.org>
Thu, 9 Feb 2023 18:46:30 +0000 (19:46 +0100)
Failure is allowed by nature of GInitable, and this avoids unnecessary
crashing of programs running with G_DEBUG=fatal-criticals.

gtk/gtksearchenginetracker3.c

index c9c3eebe981b2d477f629e927c97566b3c0549c1..25f6576c1f986101788c8ac2bcde7a1180f1af53 100644 (file)
@@ -372,8 +372,8 @@ gtk_search_engine_tracker3_new (void)
                            NULL, &error, NULL);
   if (!engine)
     {
-      g_critical ("Could not init tracker3 search engine: %s",
-                  error->message);
+      g_warning ("Could not init tracker3 search engine: %s",
+                 error->message);
       g_error_free (error);
     }