Skip to content

Commit e54ecd8

Browse files
committed
Fix hardcoded uid in __str__ method of Server class
1 parent f705713 commit e54ecd8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libtmux/server.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,7 @@ def __repr__(self) -> str:
615615
)
616616
if self.socket_path is not None:
617617
return f"{self.__class__.__name__}(socket_path={self.socket_path})"
618-
return f"{self.__class__.__name__}(socket_path=/tmp/tmux-1000/default)"
618+
return f"{self.__class__.__name__}(socket_path=/tmp/tmux-{os.geteuid()}/default)"
619619

620620
#
621621
# Legacy: Redundant stuff we want to remove

0 commit comments

Comments
 (0)