feat: single user mode on NVIDIA PCs: SDDM autologin into the Plasma session, without the conversion

This commit is contained in:
theupriser committed 2026-10-01 19:13:46 +02:00
1 parent 948dc1f587
commit 3eb22502ec
8 files changed
+88 -18

No files matched your search

+2 -1
View File
@@ -75,8 +75,9 @@ Item {
var w = Object.assign({}, want);
w[id] = !w[id];
// The same rules as the terminal menu (toggle_component).
var hasGaming = items.some(function (i) { return i.id === "gaming"; });
if (id === "gaming" && !w.gaming) w.single = false;
if (id === "single" && w.single) w.gaming = true;
if (id === "single" && w.single && hasGaming) w.gaming = true;
if (id === "nvidia") w.bigpicture = w.nvidia;
if (id === "bigpicture" && w.bigpicture) w.nvidia = true;
if (id === "machine") w.poweroff = w.machine;