From: Colin Walters Date: Tue, 7 Jun 2011 17:02:41 +0000 (-0400) Subject: g_get_user_data_dir(): Don't warn if XDG_RUNTIME_DIR isn't set X-Git-Tag: 2.29.8~39 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=de57755dbcfdea7e7233c6fd53ecca8a41ea4aa5;p=platform%2Fupstream%2Fglib.git g_get_user_data_dir(): Don't warn if XDG_RUNTIME_DIR isn't set We have a meaningful fallback, and warning causes the tests to break. --- diff --git a/glib/gutils.c b/glib/gutils.c index 11eb314..5a0a5e8 100644 --- a/glib/gutils.c +++ b/glib/gutils.c @@ -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); }