diff --git a/docs/changelog.rst b/docs/changelog.rst index 4810b84ec..053f4649e 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -27,6 +27,9 @@ To update |kitty|, :doc:`follow the instructions `. - Allow adding MIME definitions to kitty by placing a ``mime.types`` file in the kitty config directory (:iss:`3056`) +- Dont ignore :option:`--title` when using a session file that defines no + windows (:iss:`3055`) + 0.19.1 [2020-10-06] ------------------- diff --git a/kitty/session.py b/kitty/session.py index 2dba552ea..e2bca8a2d 100644 --- a/kitty/session.py +++ b/kitty/session.py @@ -115,7 +115,7 @@ def parse_session(raw: str, opts: Options, default_title: Optional[str] = None) w: Optional[Watchers] = None if t.watchers.has_watchers: w = t.watchers.copy() - t.windows.append(SpecialWindow(cmd=resolved_shell(opts), watchers=w)) + t.windows.append(SpecialWindow(cmd=resolved_shell(opts), watchers=w, override_title=default_title)) return ans ans = Session(default_title)