File tmux-socket-path.patch of Package tmux
Index: tmux-2.2/tmux.c =================================================================== --- tmux-2.2.orig/tmux.c +++ tmux-2.2/tmux.c @@ -122,7 +122,7 @@ make_label(const char *label) if ((s = getenv("TMUX_TMPDIR")) != NULL && *s != '\0') xasprintf(&base, "%s/tmux-%u", s, uid); else - xasprintf(&base, "%s/tmux-%u", _PATH_TMP, uid); + xasprintf(&base, "/run/tmux/%u", uid); if (mkdir(base, S_IRWXU) != 0 && errno != EEXIST) goto fail;