Repository navigation
feat(login): open the disk prompt's desktop from the login screen - #13
Merged
Merged
Conversation
3 of 4 tasks
SDDM's automatic login put that desktop on the first console, where SDDM 0.21 then fails to show any later login screen. Switching users from it meant logging out first. omarchy-mu-login-select now leaves a one-time pass instead (/run/omarchy-multiuser/login-once: user, boot id, time) and makes that user SDDM's last one. The greeter logs them in as it comes up, with an empty password, and the new omarchy-mu-login-once, first in SDDM's PAM stack, lets that one login through: their name, this boot, the last minute, the pass taken by the first try, and the nologin and shell checks that success=done skips. An empty password with no pass ends the attempt without pam_unix's delay or a faillock strike. The desktop gets a console of its own, as any login at the login screen does. omarchy-mu-sddm-guard keeps both PAM lines right before omarchy-mu-login-match, and removing the package takes them out. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
lbssousa
force-pushed
the
feat/login-once
branch
from
November 10, 2026 23:08
28b1bed to
7118bdd
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
SDDM's automatic login runs before any greeter, so the desktop it opens takes the display's VT, the first console (
Display::startAuthonly sets up a new VT when the greeter is running). SDDM 0.21 then fails to show any later login screen there, so Switch User from a desktop the disk prompt opened asked for a logout first.Change
The disk prompt's choice no longer goes through SDDM's
[Autologin]:omarchy-mu-login-selectwrites a one-time pass to/run/omarchy-multiuser/login-once(user, boot id, time; root's only, mode 600) and sets[Last] User=in SDDM'sstate.conf, keeping the rest of that file, its owner and its mode.--clearalso removes the pass and the 0.11.0 drop-in.omarchy-mu-login-once, as two lines first in/etc/pam.d/sddm:[success=done default=ignore] … omarchy-mu-login-once: succeeds for an empty password only, with a pass for that user, this boot, at most 60 s old, root-owned and not a link. The first empty password takes the pass, right or wrong. It also makes thepam_nologinandpam_shellschecks thatsuccess=doneskips.pam_envruns again at session.[success=die default=ignore] … omarchy-mu-login-once --empty: any other empty password ends the attempt, with nopam_unixdelay and no faillock strike.sddm.login(lastUser, "")once and shows nothing if that fails. An Enter pressed meanwhile is sent afterwards. SDDM gives that session a new VT, as it does for any login at the login screen, so the first console stays free for later greeters.omarchy-mu-sddm-guardkeeps both lines right beforeomarchy-mu-login-match, and moves them back there if they end up elsewhere. Removing the package takes them out.Another SDDM theme makes no such try and shows the login screen. The first-console check in Switch User stays, for desktops still put there by SDDM's own automatic login (
/etc/sddm.confor another tool).Note:
pam_exec'sexpose_authtokwrites the password without a trailing NUL, so an empty password arrives as no bytes at all.omarchy-mu-login-oncereads it that way, and the tests feed it in that form.Testing
just test: JS and shell suites (13 new tests:login-once.test.sh,state.confhandling, the guard's PAM lines), shellcheck, qmllint, greeter smoke,visudomakepkgwithcheck(), installed: the guard added both PAM lines in the expected order🤖 Generated with Claude Code