[glib] appmonitor test: avoid /usr/share
- From: Ryan Lortie <desrt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] appmonitor test: avoid /usr/share
- Date: Tue, 15 Apr 2014 15:37:06 +0000 (UTC)
commit 54047080e963b2d6c3f966340dcd9d788b73ac9c
Author: Ryan Lortie <desrt desrt ca>
Date: Thu Apr 10 11:49:21 2014 -0400
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
gio/tests/appmonitor.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gio/tests/appmonitor.c b/gio/tests/appmonitor.c
index 4ea9b7c..425a600 100644
--- a/gio/tests/appmonitor.c
+++ b/gio/tests/appmonitor.c
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]