diff --git a/kitty/open_actions.py b/kitty/open_actions.py index 6f4b5f35c..b4bf34698 100644 --- a/kitty/open_actions.py +++ b/kitty/open_actions.py @@ -21,6 +21,10 @@ from .utils import expandvars, get_editor, log_error, resolved_shell from .fast_data_types import get_options +if not hasattr(shlex, 'join'): + shlex.join = lambda a: ' '.join(map(shlex.quote, a)) + + class MatchCriteria(NamedTuple): type: MatchType value: str