[nautilus] tag-manager: Search for tracker3 in PATH



commit 4e43e9efcab6c3abfa24fbd6fe77d326358c1999
Author: Antoine Jacoutot <ajacoutot gnome org>
Date:   Wed Nov 11 13:18:41 2020 +0100

    tag-manager: Search for tracker3 in PATH
    
    Tracker 3 migration code tries to spawn tracker3 binary using
    G_SPAWN_SEARCH_PATH_FROM_ENVP flag. However, tracker3 is installed under
    /usr/local/bin/ on OpenBSD which isn't searched by envp. So the migration fails
    with the following warnings: "Tracker 2 migration: Couldn't run `tracker3`:
    Failed to execute child process "tracker3" (No such file or directory)."
    Let's use G_SPAWN_SEARCH_PATH instead of G_SPAWN_SEARCH_PATH_FROM_ENVP to fix
    this issue.

 src/nautilus-tag-manager.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/nautilus-tag-manager.c b/src/nautilus-tag-manager.c
index 28b96c996..24c2de616 100644
--- a/src/nautilus-tag-manager.c
+++ b/src/nautilus-tag-manager.c
@@ -972,7 +972,7 @@ export_tracker2_data (NautilusTagManager *self)
 
     flags = G_SPAWN_DO_NOT_REAP_CHILD |
             G_SPAWN_STDERR_TO_DEV_NULL |
-            G_SPAWN_SEARCH_PATH_FROM_ENVP;
+            G_SPAWN_SEARCH_PATH;
     success = g_spawn_async_with_pipes (NULL,
                                         argv,
                                         NULL,


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