tmux: Fix behavior with non-login shell

where f8e73d4660 does not work well.
This commit is contained in:
Tee KOBAYASHI 2022-09-20 08:50:56 +09:00 committed by xtkoba
parent 93acab0a51
commit 2105bd4508
2 changed files with 12 additions and 1 deletions

View File

@ -5,7 +5,7 @@ TERMUX_PKG_MAINTAINER="@termux"
# Link against libandroid-support for wcwidth(), see https://github.com/termux/termux-packages/issues/224
TERMUX_PKG_DEPENDS="ncurses, libevent, libandroid-support, libandroid-glob"
TERMUX_PKG_VERSION=3.3
TERMUX_PKG_REVISION=1
TERMUX_PKG_REVISION=2
TERMUX_PKG_SRCURL="https://github.com/tmux/tmux/archive/${TERMUX_PKG_VERSION}.tar.gz"
TERMUX_PKG_SHA256=967044a34cf69197355f18f2f66e7300b29799576f91fbe04200ab71e5ef6913
TERMUX_PKG_AUTO_UPDATE=true

View File

@ -0,0 +1,11 @@
--- a/tmux.h
+++ b/tmux.h
@@ -74,7 +74,7 @@
#define TMUX_CONF "/etc/tmux.conf:~/.tmux.conf"
#endif
#ifndef TMUX_SOCK
-#define TMUX_SOCK "$TMUX_TMPDIR:" _PATH_TMP
+#define TMUX_SOCK "$TMUX_TMPDIR:@TERMUX_PREFIX@/var/run"
#endif
#ifndef TMUX_TERM
#define TMUX_TERM "screen"