summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/gsdtestcase.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/gsdtestcase.py b/tests/gsdtestcase.py
index fab6bee2..51f18250 100644
--- a/tests/gsdtestcase.py
+++ b/tests/gsdtestcase.py
@@ -76,6 +76,10 @@ class GSDTestCase(X11SessionTestCase):
os.environ['XDG_DATA_HOME'] = os.path.join(klass.workdir, 'data')
os.environ['XDG_RUNTIME_DIR'] = os.path.join(klass.workdir, 'runtime')
+ # Make dconf discoverable (requires newer dbusmock API, is not needed otherwise)
+ if hasattr(klass, 'enable_service'):
+ klass.enable_service('ca.desrt.dconf')
+
# Copy gschema file into XDG_DATA_HOME
gschema_dir = os.path.join(os.environ['XDG_DATA_HOME'], 'glib-2.0', 'schemas')
os.makedirs(gschema_dir)