Since your XDG_RUNTIME_DIR is managed by systemd, it will not exist when user not logined, and will be destroied when user logout.
https://wiki.archlinux.org/title/XDG_Base_Directory
So I suggest you following this post:
Since your XDG_RUNTIME_DIR is managed by systemd, it will not exist when user not logined, and will be destroied when user logout.
https://wiki.archlinux.org/title/XDG_Base_Directory
So I suggest you following this post: