Skip to content
Commit d396744c authored by Damjan Georgievski's avatar Damjan Georgievski Committed by Albert Astals Cid
Browse files

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
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment