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.
This commit is contained in:
Colin Walters 2011-06-07 13:02:41 -04:00
parent 5f35cb9db4
commit de57755dbc

View 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);
}