This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch tymux
in repository terminology.
View the commit online.
commit 3d138d677e856e7115fd86813b9d1838809f921f
Author: [email protected] <[email protected]>
AuthorDate: Fri Mar 20 21:46:57 2026 -0600
fix: use compiled-in path for tymuxd spawn in session restore
execlp("tymuxd", ...) relies on PATH, which may not include the
install prefix in desktop autostart environments. This caused
session restore to silently fail and fall back to a plain shell.
Try execl(PACKAGE_BIN_DIR "/tymuxd", ...) first using the path
from meson's install prefix, then fall back to PATH search.
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
---
src/bin/termsession.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/src/bin/termsession.c b/src/bin/termsession.c
index 1e9a3519..e2ebb692 100644
--- a/src/bin/termsession.c
+++ b/src/bin/termsession.c
@@ -340,8 +340,14 @@ _ensure_daemon(const char *session_name, const char *sock_path)
close(fd);
}
+ /* Try the compiled-in install path first so that desktop-autostart
+ * and other restricted environments (where PACKAGE_BIN_DIR may not
+ * be in PATH) can still spawn the daemon. */
+ execl(PACKAGE_BIN_DIR "/tymuxd",
+ "tymuxd", session_name, (char *)NULL);
+ /* Fallback: search PATH in case the binary is in a custom location */
execlp("tymuxd", "tymuxd", session_name, (char *)NULL);
- /* If exec fails, exit without running atexit handlers */
+ /* If both exec calls fail, exit without running atexit handlers */
_exit(127);
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.