mockable XDG context
port merge from pwdmgr -- fix #2