mirror of
https://github.com/MarginaliaSearch/MarginaliaSearch.git
synced 2025-02-24 05:18:58 +00:00
Fix bug where WmsaHome wouldn't look in /var/lib/wmsa as a fallback
This commit is contained in:
parent
45dd9fea25
commit
2f2c86a9f5
@ -47,8 +47,7 @@ public class WmsaHome {
|
|||||||
// Developers probably have a "run/" somewhere upstream from cwd.
|
// Developers probably have a "run/" somewhere upstream from cwd.
|
||||||
//
|
//
|
||||||
|
|
||||||
return Stream.iterate(Paths.get("").toAbsolutePath(), Path::getParent)
|
return Stream.iterate(Paths.get("").toAbsolutePath(), f -> f != null && Files.exists(f), Path::getParent)
|
||||||
.takeWhile(Files::exists)
|
|
||||||
.filter(p -> Files.exists(p.resolve("run/env")))
|
.filter(p -> Files.exists(p.resolve("run/env")))
|
||||||
.filter(p -> Files.exists(p.resolve("run/setup.sh")))
|
.filter(p -> Files.exists(p.resolve("run/setup.sh")))
|
||||||
.map(p -> p.resolve("run"))
|
.map(p -> p.resolve("run"))
|
||||||
|
Loading…
Reference in New Issue
Block a user