1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-29 16:02:51 -05:00

XDG_DATA_DIRS for greeter

This commit is contained in:
bbedward
2025-10-02 22:10:46 -04:00
parent 731db13c14
commit b4ab9d9650
2 changed files with 27 additions and 2 deletions

View File

@@ -17,6 +17,7 @@ Item {
required property var sessionLock
readonly property string xdgDataDirs: Quickshell.env("XDG_DATA_DIRS")
property string screenName: ""
property string randomFact: ""
property string hyprlandCurrentLayout: ""
@@ -1160,7 +1161,10 @@ Item {
Process {
id: sessionListProc
command: ["find", "/usr/share/wayland-sessions", "/usr/share/xsessions", "-name", "*.desktop", "-type", "f"]
command: ["find"]
.concat(xdgDataDirs.split(":").map(d => d + "/wayland-sessions"))
.concat(xdgDataDirs.split(":").map(d => d + "/xsessions"))
.concat(["-name", "*.desktop", "-type", "f", "-follow"])
running: false
stdout: SplitParser {