You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Server initialised without args have socket_name and socket_path as empty strings
>>> server = libtmux.Server()
>>> server
Server(socket_path=/tmp/tmux-1000/default)
>>> server.socket_path
>>> server.socket_name
>>> print(server)
Server(socket_path=/tmp/tmux-1000/default)
>>>
From the code it looks we dont initialise self.socket_path and self.socket_name, which we should, to default values.
Is this by design, or is it something that we should fix ? If its to be fixed, I can raise a PR for it.
The text was updated successfully, but these errors were encountered:
lazysegtree
changed the title
server's socket_name and socket_path is empty
Server's socket_name and socket_path are empty when its initialised with no args
Jan 30, 2025
Also that fact that /tmp/tmux-1000/default is hardcoded, is wrong. In my mac, I see that socket path of tmux is different in my environment in MacOS . Its /tmp/tmux-501/default
➜ ~ [11:44:46] tmux list-session
no server running on /private/tmp/tmux-501/default
➜ ~ [11:44:50]
➜ ~ [11:48:40] ls -ltr /tmp
lrwxr-xr-x@ 1 root wheel 11 Oct 15 16:52 /tmp -> private/tmp
➜ ~ [11:49:27]
Server initialised without args have socket_name and socket_path as empty strings
From the code it looks we dont initialise self.socket_path and self.socket_name, which we should, to default values.
Is this by design, or is it something that we should fix ? If its to be fixed, I can raise a PR for it.
Some relavant code snippets
Server class
__init__
String representation of Server object
The text was updated successfully, but these errors were encountered: