diff --git a/docs/changelog.rst b/docs/changelog.rst index df659b688..9a9f039c1 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -131,6 +131,8 @@ Detailed list of changes - Single instance: Preserve environment variables from invoking environment in newly created window (:disc:`8567`) +- Single instance: Reset OS Window class and name in new single instance OS + windows (:disc:`8567`) 0.41.1 [2025-04-03] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/kitty/session.py b/kitty/session.py index 00b8342ef..7ebde0206 100644 --- a/kitty/session.py +++ b/kitty/session.py @@ -273,6 +273,9 @@ def create_sessions( current_layout = opts.enabled_layouts[0] if opts.enabled_layouts else 'tall' ans.add_tab(opts) ans.tabs[-1].layout = current_layout + if args is not None: + ans.os_window_class = args.cls + ans.os_window_name = args.name if special_window is None: cmd = args.args if args and args.args else resolved_shell(opts) from kitty.tabs import SpecialWindow