File tree 2 files changed +12
-4
lines changed
2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,10 @@ $ pip install --user --upgrade --pre libtmux
14
14
15
15
<!-- Maintainers and contributors: Insert change notes for the next release above -->
16
16
17
+ ### Fixes
18
+
19
+ - Server: Launching of new session with default socket (#857 )
20
+
17
21
## libtmux 0.18.1 (2022-12-28)
18
22
19
23
### Fixes
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