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 22:21:04 +0000 (23:21 +0100)
Failure is allowed by nature of GInitable, and this avoids unnecessary
crashing of programs running with G_DEBUG=fatal-criticals.

(cherry picked from commit 6215b38e645f5047d52e625562efccc1e4f85867)

gtk/gtksearchenginetracker3.c

index 2bdb85ec5deabec7e2c2ab493a4db62b7fcaa2e5..3f054110b5796e10b77d1966e157af6e751d3632 100644 (file)
@@ -394,8 +394,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);
     }