Fix #1627: increase profile maxdepth on OSX

This commit is contained in:
Oliver Blanthorn 2026-07-26 18:33:02 +02:00
parent ebd4f13bf3
commit c55948419f
No known key found for this signature in database
GPG key ID: 2BB8C36BB504BFF3

View file

@ -690,7 +690,10 @@ export async function getProfileUncached() {
let profilecmd
if (os !== "win") {
const lockfile = os === "mac" ? ".parentlock" : "lock"
profilecmd = await run(`find "${ffDir}" -maxdepth 2 -name ${lockfile}`)
const maxdepth = os === "mac" ? 3 : 2
profilecmd = await run(
`find "${ffDir}" -maxdepth ${maxdepth} -name ${lockfile}`,
)
}
if (profilecmd?.code === 0 && profilecmd.content.length !== 0) {
// Remove trailing newline