How to automatically unlock KDEWallet with autologin?

When I’m trying to use my system sometimes I get popup “The application ‘kde6’ has requested to open the wallet ‘kdewallet’. Please enter the password for this wallet below“. This popups are annoying, so I would like to get rid of them. How I can do it?

I don’t want to set my KDEWallet password to empty password.

I don’t want to disable autologin.

I asked this question years ago, and I couldn’t find an answer other than using empty password. So, I went ahead with it as I have to enter my password to log in anyway.
As for autologin, I use an autostart script that immediately locks the screen upon login.
session=“$(loginctl show-session “$XDG_SESSION_ID” -p Service --value)”
if [[ “$session” == “sddm-autologin” ]]; then
qdbus org.freedesktop.ScreenSaver /ScreenSaver Lock
fi

This doesn’t sound much like ‘autologin’ to me.

What you’re asking to do is to fully lock up your house with the front door set to automatically open if anyone approaches…

Blank Wallet Password gives maximum convenience, but less security… much like ‘autologin’.

KDE Wallet cannot unlock with autologin because autologin process doesn’t give up the password to PAM.

You’re right, this is not ‘autologin’.
I use this “solution” without autologin so that KDE Wallet is unlocked after I log in entering my password.
For the autologin scenario, I use an autostart script that locks the screen immediately after autologin. So, the unlocked KDE Wallet is only accessible after unlocking the screen by entering the user password.
The difference here is that all the usual startup processes are executed in the background, ready to use as soon as user password is entered.

1 Like

To be quite honest, I don’t think autologin is worth the compromise.

You’re going to enter a password at some stage, might as well make it at login… then you have your secure keyring without any kerfuffle.

Hello,

Kubuntu 24.04 on the desktop at home, installed without asking password for login. Can be used by kids too for work, video game, cartoons, etc (no TV).

Any problem. Password are asked only for administrative tasks - but, it’s still KDE Plasma 5 …

regards