[glib] g_get_user_data_dir(): Don't warn if XDG_RUNTIME_DIR isn't set



commit de57755dbcfdea7e7233c6fd53ecca8a41ea4aa5
Author: Colin Walters <walters verbum org>
Date:   Tue Jun 7 13:02:41 2011 -0400

    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.

 glib/gutils.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)
---
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);
     }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]