What I think is going on:
* PAM starts kwalletd5
* kwalletd5 starts migration wizard
* migration wizard has no $HOME set yet
* error
It would appear this happens only when there is an existing kwallet4 which it tries to migrate.
The main problem is that kwalletd5 gets the environment (including $HOME) from ksmserver, which is started *after* PAM and the migration wizard is started from PAM. Then it all explodes.
What I think is going on:
* PAM starts kwalletd5
* kwalletd5 starts migration wizard
* migration wizard has no $HOME set yet
* error
It would appear this happens only when there is an existing kwallet4 which it tries to migrate.
The main problem is that kwalletd5 gets the environment (including $HOME) from ksmserver, which is started *after* PAM and the migration wizard is started from PAM. Then it all explodes.