mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-30 08:22:51 -05:00
Follow symlinks when searching for sessions (#728)
This commit is contained in:
@@ -1086,9 +1086,9 @@ Item {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
// 1. Explicit system/user paths
|
// 1. Explicit system/user paths
|
||||||
var explicitFind = "find " + paths.join(" ") + " -maxdepth 1 -name '*.desktop' -type f 2>/dev/null"
|
var explicitFind = "find " + paths.join(" ") + " -maxdepth 1 -name '*.desktop' -type f -follow 2>/dev/null"
|
||||||
// 2. Scan all /home user directories for local session files
|
// 2. Scan all /home user directories for local session files
|
||||||
var homeScan = "find /home -maxdepth 5 \\( -path '*/wayland-sessions/*.desktop' -o -path '*/xsessions/*.desktop' \\) -type f 2>/dev/null"
|
var homeScan = "find /home -maxdepth 5 \\( -path '*/wayland-sessions/*.desktop' -o -path '*/xsessions/*.desktop' \\) -type f -follow 2>/dev/null"
|
||||||
var findCmd = "(" + explicitFind + "; " + homeScan + ") | sort -u"
|
var findCmd = "(" + explicitFind + "; " + homeScan + ") | sort -u"
|
||||||
return ["sh", "-c", findCmd]
|
return ["sh", "-c", findCmd]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user