summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Thursfield <sam@afuera.me.uk>2019-09-29 16:44:28 +0200
committerSam Thursfield <sam@afuera.me.uk>2019-10-02 22:12:11 +0200
commit6c98d2e70dae0d98bdacb0f7cbe993d07c748fc5 (patch)
tree98c94cedba661859509b3d0b676eb2962858c628
parent658b9451bc69646615c56d7ec522d2f39d6c6cdc (diff)
downloadtracker-6c98d2e70dae0d98bdacb0f7cbe993d07c748fc5.tar.gz
trackertestutils: Set GVFS_DISABLE_FUSE in the sandbox
This avoids an issue I experience sometimes when using the `run-uninstalled` script. Since Tracker uses Gio APIs it causes gvfsd to start on the private message bus, and this by default starts gvfsd-fuse. However if the message bus shuts down while gvfsd-fuse is starting, the gvfsd-fuse process doesn't quit and instead stays around preventing the message bus from closing. I did try to fix the issue in gvfsd-fuse. However the code has changed recently so perhaps the issue is already fixed in 1.42.0.
-rw-r--r--utils/trackertestutils/helpers.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/utils/trackertestutils/helpers.py b/utils/trackertestutils/helpers.py
index a80d3266a..07b176b9a 100644
--- a/utils/trackertestutils/helpers.py
+++ b/utils/trackertestutils/helpers.py
@@ -453,6 +453,14 @@ class TrackerDBusSandbox:
env.update(self.extra_env)
env['G_MESSAGES_PREFIXED'] = 'all'
+ # This avoids an issue where gvfsd-fuse can start up while the bus is
+ # shutting down. If it fails to connect to the bus, it continues to
+ # run anyway which leads to our dbus-daemon failing to shut down.
+ #
+ # Since https://gitlab.gnome.org/GNOME/gvfs/issues/323 was implemented
+ # in GVFS 1.42 this problem may have gone away.
+ env['GVFS_DISABLE_FUSE'] = '1'
+
# Precreate runtime dir, to avoid this warning from dbus-daemon:
#
# Unable to set up transient service directory: XDG_RUNTIME_DIR "/home/sam/tracker-tests/tmp_59i3ev1/run" not available: No such file or directory