summaryrefslogtreecommitdiff
path: root/gconf/gconf-backend.c
diff options
context:
space:
mode:
Diffstat (limited to 'gconf/gconf-backend.c')
-rw-r--r--gconf/gconf-backend.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/gconf/gconf-backend.c b/gconf/gconf-backend.c
index c11bb875..044c0f18 100644
--- a/gconf/gconf-backend.c
+++ b/gconf/gconf-backend.c
@@ -21,6 +21,7 @@
#include <config.h>
#include "gconf-backend.h"
#include "gconf-internals.h"
+#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <sys/stat.h>
@@ -171,6 +172,7 @@ gconf_backend_file(const gchar* address)
gchar* back;
gchar* file;
gchar* retval;
+ const gchar* backenddir;
g_return_val_if_fail(address != NULL, NULL);
@@ -179,9 +181,13 @@ gconf_backend_file(const gchar* address)
if (back == NULL)
return NULL;
+ backenddir = g_getenv("GCONF_BACKEND_DIR");
+ if (backenddir == NULL)
+ backenddir = GCONF_BACKEND_DIR;
+
file = g_strconcat("gconfbackend-", back, NULL);
- retval = g_module_build_path(GCONF_BACKEND_DIR, file);
+ retval = g_module_build_path(backenddir, file);
g_free(back);