mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 15:06:14 +01:00
appmonitor test: avoid /usr/share
Set XDG_DATA_DIRS to make sure we don't use /usr/share from the appmonitor test. We will soon throw a warning if we find defaults.list, so make sure we don't open ourselves up to that if there is one on the system. https://bugzilla.gnome.org/show_bug.cgi?id=728040
This commit is contained in:
parent
a366b6f2d5
commit
54047080e9
@ -104,6 +104,7 @@ main (int argc, char *argv[])
|
||||
gchar *path;
|
||||
|
||||
path = g_mkdtemp (g_strdup ("app_monitor_XXXXXX"));
|
||||
g_setenv ("XDG_DATA_DIRS", path, TRUE);
|
||||
g_setenv ("XDG_DATA_HOME", path, TRUE);
|
||||
|
||||
g_test_init (&argc, &argv, NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user