fix(scanner): pass datafolder and cachefolder to scanner subprocess

Fix #3831

Signed-off-by: Deluan <deluan@navidrome.org>
This commit is contained in:
Deluan 2025-03-19 22:15:20 -04:00 committed by Joe Stump
parent a9331d5ddf
commit e4943f786d
No known key found for this signature in database
GPG Key ID: 29151C3EC48A0EB9

View File

@ -33,6 +33,8 @@ func (s *scannerExternal) scanAll(ctx context.Context, fullScan bool, progress c
cmd := exec.CommandContext(ctx, exe, "scan",
"--nobanner", "--subprocess",
"--configfile", conf.Server.ConfigFile,
"--datafolder", conf.Server.DataFolder,
"--cachefolder", conf.Server.CacheFolder,
If(fullScan, "--full", ""))
in, out := io.Pipe()