From 74d5f2c259908a422e1c5674268459b6a4922d9b Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 17 Apr 2022 08:19:01 +0530 Subject: [PATCH] Dont allow inappropriate types for cloning --- kitty/launch.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kitty/launch.py b/kitty/launch.py index c5d598a45..b81bdec50 100644 --- a/kitty/launch.py +++ b/kitty/launch.py @@ -588,6 +588,8 @@ def clone_and_launch(msg: str, window: Window) -> None: c.opts.cwd = c.cwd c.opts.copy_colors = True c.opts.copy_env = False + if c.opts.type in ('clipboard', 'primary', 'background'): + c.opts.type = 'window' serialized_env = serialize_env(c.shell, c.env or {}) ssh_kitten_cmdline = window.ssh_kitten_cmdline() if ssh_kitten_cmdline: