use XDG_RUNTIME_DIR instead of /tmp for the socketPath
Most recent Linux distributions setup a per-user XDG_RUNTIME_DIR as a tmpfs, which is also tied to their session lifecycle. Typically this is in /run/user/1000/. My suggestion is to use $XDG_RUNTIME_DIR/kwallet5.socket if XDG_RUNTIME_DIR exists, or fallback to /tmp/kwallet5_${username}.socket if it doesn't. REVIEW: 129526 BUGS: 365722
parent
ffc820a9
Please register or sign in to comment