mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-08-01 19:18: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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user