[nautilus/gnome-3-38] tag-manager: Search for tracker3 in PATH
- From: Ondrej Holy <oholy src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/gnome-3-38] tag-manager: Search for tracker3 in PATH
- Date: Thu, 19 Nov 2020 08:12:36 +0000 (UTC)
commit 5f07c8db552d70768a83eaa3e76fc9864b8b05db
Author: Antoine Jacoutot <ajacoutot gnome org>
Date: Wed Nov 11 12:18:41 2020 +0000
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.
(cherry picked from commit 4e43e9efcab6c3abfa24fbd6fe77d326358c1999)
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]