path_tildexpand was not applied to webdownloadsdir leading to failure if it was specified as ~/xxx

This commit is contained in:
Jean-Francois Dockes 2021-12-22 19:16:36 +01:00
parent d55decef20
commit 1f422eb023

View File

@ -59,8 +59,9 @@ bool runWebFilesMoverScript(RclConfig *config)
static string downloadsdir;
if (downloadsdir.empty()) {
if (!config->getConfParam("webdownloadsdir", downloadsdir)) {
downloadsdir = path_tildexpand("~/Downloads");
downloadsdir = "~/Downloads";
}
downloadsdir = path_tildexpand(downloadsdir);
}
vector<string> cmdvec;
config->pythonCmd("recoll-we-move-files.py", cmdvec);