fix(plasma): security mistake

without `exec`, if you're able to log out when the screen is locked,
you're also able to go right into a tty. oops.

note that this is untested since I no longer use plasma
This commit is contained in:
electria 2026-05-01 14:19:17 -07:00
commit 3540ba374d
Signed by: electria
SSH key fingerprint: SHA256:8LlB3ucPbBHqozqkhsNbaV5oG3SlzzqUj8FZDL6IPQs

View file

@ -43,7 +43,7 @@ in
environment.interactiveShellInit =
lib.mkIf cfg.startOnFirstTTY
/* sh */ "test $(tty) = /dev/tty1 && startplasma-wayland";
/* sh */ "test $(tty) = /dev/tty1 && exec startplasma-wayland";
services.displayManager.sddm.enable = lib.mkIf cfg.startOnFirstTTY false;