FS#47794 - kwallet does not auto start at login

Attached to Project: Arch Linux
Opened by Mike Cloaked (mcloaked) - Saturday, 16 January 2016, 19:23 GMT
Last edited by Antonio Rojas (arojas) - Saturday, 16 January 2016, 19:53 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

Adding the necessary lines to the file /etc/pam.d/sddm to allow kwallet5 to start on login does not work.

Additional info:
* package version(s)
* config and/or log files etc.

/etc/pam.d/sddm
#%PAM-1.0

auth include system-login
auth optional pam_kwallet5.so
account include system-login
password include system-login
session include system-login
session optional pam_kwallet5.so auto_start

In journal:
Jan 16 18:44:01 lenovo1 sddm[397]: Session started
Jan 16 18:44:01 lenovo1 systemd[572]: Started D-Bus User Message Bus.
Jan 16 18:44:01 lenovo1 ksplashqml[606]: file:///usr/share/plasma/look-and-feel/org.kde.oxygen/contents/splash/Splash.qml:89: ReferenceError: bottomRect is not defined
Jan 16 18:44:01 lenovo1 ksplashqml[606]: file:///usr/share/plasma/look-and-feel/org.kde.oxygen/contents/splash/Splash.qml:88: ReferenceError: bottomRect is not defined
Jan 16 18:44:01 lenovo1 ksplashqml[606]: Loading stage "initial" 103
Jan 16 18:44:01 lenovo1 kwalletd5[586]: kwalletd5 started
Jan 16 18:44:01 lenovo1 kwalletd5[586]: Wallet new enough, using new hash
Jan 16 18:44:01 lenovo1 kwalletd5[586]: Wallet opened by PAM
Jan 16 18:44:01 lenovo1 kwalletd5[586]: Migration agent starting...
Jan 16 18:44:01 lenovo1 kwalletd5[586]: kwalletd not started. Attempting start...
Jan 16 18:44:01 lenovo1 dbus-daemon[594]: Activating service name='org.kde.kwalletd'
Jan 16 18:44:01 lenovo1 org.kde.kwalletd[594]: QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
Jan 16 18:44:01 lenovo1 dbus-daemon[594]: Successfully activated service 'org.kde.kwalletd'
Jan 16 18:44:01 lenovo1 kwalletd5[586]: The kwalletd service has been registered
Jan 16 18:44:01 lenovo1 org.kde.kwalletd[594]: QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
Jan 16 18:44:02 lenovo1 kwalletd5[586]: Migration wizard returned an error or has been canceled. The migration agent will resume upon next daemon start
Jan 16 18:44:02 lenovo1 kwalletd5[586]: Migration agent stop.
Jan 16 18:44:02 lenovo1 kdeinit5[632]: Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)

Steps to reproduce: Add the two lines to /etc/pam.d/sddm to allow kwallet5 to open automatically on login. Login to plasma desktop from sddm greeter. Kwallet appears not to be open.
This task depends upon

Closed by  Antonio Rojas (arojas)
Saturday, 16 January 2016, 19:53 GMT
Reason for closing:  Not a bug
Comment by Antonio Rojas (arojas) - Saturday, 16 January 2016, 19:28 GMT
Jan 16 18:44:01 lenovo1 kwalletd5[586]: Wallet opened by PAM

So what makes you think it's not open?
Comment by Mike Cloaked (mcloaked) - Saturday, 16 January 2016, 19:33 GMT
The relevant package is kwallet-pam 5.5.3-1

Going to the wallet management tool in the system folder of the applications in plasma gives "The wallet is currently closed" with a button to open it. Also if I run ksshaskpass then it asks for the wallet password as the wallet is not open.
Comment by Antonio Rojas (arojas) - Saturday, 16 January 2016, 19:38 GMT
Well, the logs clearly show that the wallet is opened at startup, so it must have been closed afterwards for some reason. Check the wallet settings to make sure you haven't enabled any of the auto closing options.
Comment by Mike Cloaked (mcloaked) - Saturday, 16 January 2016, 19:44 GMT
The settings were as default - it is set to close when the last application stops using it. This is in the wallet management tool. Is there anywhere else that anything can set auto close? Also does anything need to be done with the old kde4 wallet that was previously in use that had a blank password? I did not touch the files for the old kde4 system on migration to plasma.
Comment by Antonio Rojas (arojas) - Saturday, 16 January 2016, 19:48 GMT
Then it will close if no application is using it. If you want it to stay open, unselect that option.
Comment by Mike Cloaked (mcloaked) - Saturday, 16 January 2016, 19:53 GMT
You are totally correct - that works perfectly. Thank you, Antonio, and sorry that this was clearly my misunderstanding about how the wallet settings need to be used.

Loading...