From a052278846befc5ebf5ac521f85023a933daf8c5 Mon Sep 17 00:00:00 2001 From: Jean-Francois Dockes Date: Mon, 22 Aug 2022 18:37:19 +0200 Subject: [PATCH] Oops in 489e88c8: fix to the recoll-we-move-file config issue. The script needs the config for other values. Set RECOLL_CONFDIR in the environment. --- src/index/indexer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index/indexer.cpp b/src/index/indexer.cpp index 3d67be34..dac6e8ac 100644 --- a/src/index/indexer.cpp +++ b/src/index/indexer.cpp @@ -65,7 +65,6 @@ bool runWebFilesMoverScript(RclConfig *config) } vector cmdvec; config->pythonCmd("recoll-we-move-files.py", cmdvec); - cmdvec.push_back(downloadsdir); /* Arrange to not actually run the script if the directory did not change */ static time_t dirmtime; @@ -85,6 +84,7 @@ bool runWebFilesMoverScript(RclConfig *config) are created during the run. */ dirmtime = ndirmtime; ExecCmd cmd; + cmd.putenv("RECOLL_CONFDIR", config->getConfDir()); int status = cmd.doexec1(cmdvec); return status == 0; }