[tracker/sam/run-uninstalled-fixes: 1/2] trackertestutils: Set GVFS_DISABLE_FUSE in the sandbox



commit 398d702795bd059f93b5de053df4bc94aec331a5
Author: Sam Thursfield <sam afuera me uk>
Date:   Sun Sep 29 16:44:28 2019 +0200

    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.

 utils/trackertestutils/helpers.py | 8 ++++++++
 1 file changed, 8 insertions(+)
---
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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]