g_get_user_data_dir(): Don't warn if XDG_RUNTIME_DIR isn't set
authorColin Walters <walters@verbum.org>
Tue, 7 Jun 2011 17:02:41 +0000 (13:02 -0400)
committerColin Walters <walters@verbum.org>
Tue, 7 Jun 2011 17:02:41 +0000 (13:02 -0400)
We have a meaningful fallback, and warning causes the tests to break.

glib/gutils.c

index 11eb314..5a0a5e8 100644 (file)
@@ -2324,10 +2324,6 @@ g_get_user_runtime_dir (void)
     {
       runtime_dir = g_strdup (getenv ("XDG_RUNTIME_DIR"));
       
-      if (runtime_dir == NULL)
-        g_warning ("XDG_RUNTIME_DIR variable not set.  "
-                   "Falling back to XDG cache dir.");
-
       g_once_init_leave (&initialised, 1);
     }