mirror of
https://github.com/arthur-pbty/arthur-os.git
synced 2026-08-01 20:28:16 +02:00
13 lines
693 B
Bash
13 lines
693 B
Bash
echo "Prevent SDDM password login from creating encrypted login keyring"
|
|
|
|
# Rename the encrypted login keyring if it exists (it conflicts with the passwordless Default_keyring)
|
|
if [[ -f $HOME/.local/share/keyrings/login.keyring ]]; then
|
|
mv "$HOME/.local/share/keyrings/login.keyring" "$HOME/.local/share/keyrings/login.keyring.bak"
|
|
fi
|
|
|
|
# Remove gnome-keyring auth/password lines from sddm PAM so password-based logins
|
|
# don't create an encrypted login keyring. Keep the session line to start the daemon,
|
|
# which will auto-unlock the passwordless Default_keyring.
|
|
sudo sed -i '/-auth.*pam_gnome_keyring\.so/d' /etc/pam.d/sddm
|
|
sudo sed -i '/-password.*pam_gnome_keyring\.so/d' /etc/pam.d/sddm
|