I was using tmux fine but after swapping default tmp directory for tmpfs I’m getting an error “couldn’t create directory /run/tmux/1000 (No such file or directory)” when launching tmux.
tmux only works If I manually create /run/tmux/ directory with write rule for users.
What can I do to solve this issue? I’d like to keep using tmpfs.
I didn’t edit that file, it was preinstalled (not enabled).
I’ve only removed a systemd unit for mounting default tmp directory and replaced with this tmpfs unit.
I haven’t changed anything else. tmux was launching without errors when I was using the old default tmp directory without tmpfs.
Found the reason for the error .
It’s because systemd-tmpfiles-setup.service wasn’t enabled.
After enabling it with systemctl unmask systemd-tmpfiles-setup.service there’s no error now.
So, initially I’d disabled systemd’s default tmp mount, enabled tmpfs but forgot to enable systemd-tmpfiles-setup.service