File tree 1 file changed +8
-4
lines changed
1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -120,6 +120,7 @@ def __init__(
120
120
tmux_tmpdir is not None
121
121
and self .socket_path is None
122
122
and self .socket_name is None
123
+ and socket_name != "default"
123
124
):
124
125
self .socket_path = str (tmux_tmpdir / f"tmux-{ os .geteuid ()} " / socket_name )
125
126
@@ -554,11 +555,14 @@ def __repr__(self) -> str:
554
555
if self .socket_name is not None :
555
556
return (
556
557
f"{ self .__class__ .__name__ } "
557
- f"(socket_name={ getattr (self , 'socket_name' )} )"
558
+ f"(socket_name={ getattr (self , 'socket_name' , 'default' )} )"
558
559
)
559
- return (
560
- f"{ self .__class__ .__name__ } " f"(socket_path={ getattr (self , 'socket_path' )} )"
561
- )
560
+ elif self .socket_path is not None :
561
+ return (
562
+ f"{ self .__class__ .__name__ } "
563
+ f"(socket_path={ getattr (self , 'socket_path' )} )"
564
+ )
565
+ return f"{ self .__class__ .__name__ } " f"(socket_path=/tmp/tmux-1000/default)"
562
566
563
567
#
564
568
# Legacy: Redundant stuff we want to remove
You can’t perform that action at this time.
0 commit comments