From f8156f85a594b9ac6df6e907e22214155e6224fb Mon Sep 17 00:00:00 2001 From: Zane Walker Date: Sat, 18 Jul 2026 22:57:05 +0530 Subject: [PATCH] (Fix): `pam_open_session` failure (e.g. `pam_systemd` rejecting the DM process as session leader) is now logged as a warning instead of blocking the entire session spawn. --- src/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.go b/src/main.go index e1161bb..038697c 100644 --- a/src/main.go +++ b/src/main.go @@ -153,7 +153,7 @@ func spawnSession(res *login.Result) error { defer creds.CloseSession() if err := creds.OpenSession(); err != nil { - return fmt.Errorf("pam session: %w", err) + log.Printf("pam session warning: %v", err) } session.SetBasicVariables(creds.Username, creds.HomeDir, creds.Shell, res.Config.InitialPath)