Q: Keychain & SDDM: Which user dot files are loaded at login?

Rome 25.04
Kernel 6.13.9-desktop-3omv2590
KDE + Wayland
AMD 7940HS w/ Radeon 780M Graphics

Hello, folks–

I just resolved a pickle I got myself into by removing a keychain agent load stanza I had added to my .zshenv file. Keychain loads up ssh-agent and/or gpg-agent and sets the correct environment variables for agent re-use.

The symptom was SDDM login resulting in a black screen and never getting any further. The X11 emergency terminal worked fine, even popping up a keychain passphrase box – which should have been my first clue. I had performed a dnf distro-sync immediately before the reboot that got it into this state so of course that made me thing the update caused the problem. I’d forgotten I had recently added the keychain stuff until I tracked down the location of SDDM and X11 logs.

So my question: Is it safe to put the keychain agent load into .zshrc, or does .zshrc also get sourced at SDDM login? It’s been quite some years since I’ve had to dig into DE startup process order.

I’m a recent (maybe 2 years) convert to zsh from bash, so I suspect putting keychain into bash .profile would also cause this problem.

Thanks for any assistance–
=RRT=

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.