mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-14 22:26:46 +02:00
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:
@ -2324,10 +2324,6 @@ g_get_user_runtime_dir (void)
|
|||||||
{
|
{
|
||||||
runtime_dir = g_strdup (getenv ("XDG_RUNTIME_DIR"));
|
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);
|
g_once_init_leave (&initialised, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user