termux-packages/packages/tmux/socket-path.patch

34 lines
873 B
Diff

diff -u -r ../tmux-3.2/compat.h ./compat.h
--- ../tmux-3.2/compat.h 2021-03-02 13:07:17.000000000 +0100
+++ ./compat.h 2021-04-13 10:04:41.511077498 +0200
@@ -99,7 +99,7 @@
#endif
#ifndef _PATH_TMP
-#define _PATH_TMP "/tmp/"
+#define _PATH_TMP "@TERMUX_PREFIX@/var/run"
#endif
#ifndef _PATH_DEVNULL
diff -u -r ../tmux-3.2/tmux.1 ./tmux.1
--- ../tmux-3.2/tmux.1 2021-04-13 07:26:00.000000000 +0200
+++ ./tmux.1 2021-04-13 10:07:01.666057472 +0200
@@ -91,7 +91,7 @@
.Em server .
The server and each client are separate processes which communicate through a
socket in
-.Pa /tmp .
+.Pa @TERMUX_PREFIX@/var/run .
.Pp
The options are as follows:
.Bl -tag -width "XXXXXXXXXXXX"
@@ -159,7 +159,7 @@
stores the server socket in a directory under
.Ev TMUX_TMPDIR
or
-.Pa /tmp
+.Pa @TERMUX_PREFIX@/var/run
if it is unset.
The default socket is named
.Em default .