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-09-29 17:29:28 +0200
commite3e865ee71428dc6ae459a4e0fffa26c00d73c10 (patch)
treee4a80cd9b039f68ffae04a4ffbc93cc048a2ea5c
parent07df7002f71a243b4c983d65aaa8e630cf19fa73 (diff)
downloadtracker-e3e865ee71428dc6ae459a4e0fffa26c00d73c10.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