You are not logged in.
I don't want to use a display manager. Possibly I had no choice more than autologin my user, I want to boot, and start directly the DE/WM, just then ask for authentication.
I made this with autologin and automatically starting GNOME in this case, GNOME starts this script at its start, that spams pkexec until you input the correct passdw, blocking the screen, it is just the base. It possibly needs more security. Is there a program that do this better? Or also, how I can improve all this to be more secure?
#!/bin/bash
sleep 1 # Wait for the DE/WM
while true; do
pkexec
if [ $? -eq 0 ]; then
break
fi
doneLast edited by FrancisArcher_60 (2025-06-19 18:22:28)
Offline
Context?
Afaiu the default gnome screenlocker completely depends on GDM, but at least on X11 you can just start a screen locker (slock, i3lock, xscreensaver…) - ideally after the display server but before the rest of the session.
Whether it's possible to lock the screen on gnome-wayland w/o running GDM, idk.
Offline