Allow using the full launch command in session files

Note this is slightly backward incompatible.
This commit is contained in:
Kovid Goyal
2021-01-31 11:37:00 +05:30
parent e9e8ef7210
commit 35517d3e6f
6 changed files with 52 additions and 68 deletions
-4
View File
@@ -177,12 +177,8 @@ class Boss:
cocoa_set_notification_activated_callback(notification_activated)
def startup_first_child(self, os_window_id: Optional[int]) -> None:
from kitty.launch import load_watch_modules
startup_sessions = create_sessions(self.opts, self.args, default_session=self.opts.startup_session)
watchers = load_watch_modules(self.args.watcher)
for startup_session in startup_sessions:
if watchers is not None and watchers.has_watchers:
startup_session.add_watchers_to_all_windows(watchers)
self.add_os_window(startup_session, os_window_id=os_window_id)
os_window_id = None
if self.args.start_as != 'normal':