1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-08-02 03:28:28 -04:00

fix(void): updated dms-greeter stability support

- Updates will land in DMS v1.5.1 and users are advised to hold off on v1.5.0

Related #2788

Port 1.5
This commit is contained in:
purian23
2026-07-11 01:07:00 -04:00
parent 204ecd0461
commit 71ab752e1b
10 changed files with 276 additions and 28 deletions
+10 -1
View File
@@ -2001,6 +2001,8 @@ Item {
greeterAutoLoginPendingProcess.running = true;
pendingLaunchCommand = sessionCmd;
pendingLaunchEnv = ["XDG_SESSION_TYPE=wayland"];
if (Quickshell.env("DMS_VOID") === "1")
pendingLaunchEnv.push("LIBSEAT_BACKEND=logind");
memoryFlushTimer.restart();
}
@@ -2052,7 +2054,14 @@ Item {
const launchEnv = pendingLaunchEnv;
pendingLaunchCommand = "";
pendingLaunchEnv = [];
Greetd.launch(sessionCommand.split(" "), launchEnv);
const sessionArgs = sessionCommand.trim().split(/\s+/);
const needsVoidDbusSession = Quickshell.env("DMS_VOID") === "1"
&& !Quickshell.env("DBUS_SESSION_BUS_ADDRESS")
&& sessionArgs[0] !== "dbus-run-session";
const launchArgs = needsVoidDbusSession
? ["dbus-run-session"].concat(sessionArgs)
: sessionArgs;
Greetd.launch(launchArgs, launchEnv);
}
}