atuinsh / atuin

✨ Magical shell history
https://atuin.sh
MIT License
18.54k stars 519 forks source link

feat(daemon): follow XDG_RUNTIME_DIR if set #2171

Closed ellie closed 1 week ago

ellie commented 1 week ago

If XDG_RUNTIME_DIR is set, put the socket file there.

If not, default to storing it in our data dir. We cannot default to a path such as /run/user/$UID/ because it does not exist on all systems. Any system running systemd will set this var by default, and ensure that the directory it points to is correctly setup.

Resolves #2153

Checks