mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-27 10:41:58 +02:00
Fix active TMUX session detection
This commit is contained in:
@@ -31,6 +31,7 @@ func tmux_socket_address() (socket string) {
|
|||||||
if unix.Access(addr, unix.R_OK|unix.W_OK) != nil {
|
if unix.Access(addr, unix.R_OK|unix.W_OK) != nil {
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
pid_str, _, _ = strings.Cut(pid_str, ",")
|
||||||
pid, err := strconv.ParseInt(pid_str, 10, 32)
|
pid, err := strconv.ParseInt(pid_str, 10, 32)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return ""
|
return ""
|
||||||
|
|||||||
Reference in New Issue
Block a user