Skip to content

Commit fcfca0a

Browse files
committed
Do not set session start_directory if tmux 1.8
1 parent 0c71aa9 commit fcfca0a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tmuxp/workspacebuilder.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
from libtmux.server import Server
1616
from libtmux.session import Session
1717
from libtmux.window import Window
18+
from libtmux.common import has_version
1819

1920
from . import exc
2021
from .util import run_before_script
@@ -137,7 +138,12 @@ def build(self, session=None):
137138
'Session name %s is already running.' % self.sconf['session_name']
138139
)
139140
else:
140-
self.sconf['start_directory'] = self.sconf.get('start_directory', None)
141+
if not has_version('1.8'):
142+
self.sconf['start_directory'] = self.sconf.get(
143+
'start_directory', None
144+
)
145+
else:
146+
self.sconf['start_directory'] = None
141147

142148
session = self.server.new_session(
143149
session_name=self.sconf['session_name'],

0 commit comments

Comments
 (0)