diff --git a/docs/remote-control.rst b/docs/remote-control.rst index dc813e933..ecb3fcd53 100644 --- a/docs/remote-control.rst +++ b/docs/remote-control.rst @@ -103,7 +103,7 @@ instance of |kitty| using the :option:`kitty @ --to` command line argument to `` kitty @ --to unix:/tmp/mykitty ls -Note that is all you want to do is run a single |kitty| "daemon" and have subsequent +Note that if all you want to do is run a single |kitty| "daemon" and have subsequent |kitty| invocations appear as new top-level windows, you can use the simpler :option:`kitty --single-instance` option, see ``kitty --help`` for that. diff --git a/kittens/runner.py b/kittens/runner.py index 1d6b1250b..4363325da 100644 --- a/kittens/runner.py +++ b/kittens/runner.py @@ -30,10 +30,10 @@ def import_kitten_main_module(config_dir, kitten): exec(code, g) hr = g.get('handle_result', lambda *a, **kw: None) return {'start': g['main'], 'end': hr} - else: - kitten = resolved_kitten(kitten) - m = importlib.import_module('kittens.{}.main'.format(kitten)) - return {'start': m.main, 'end': getattr(m, 'handle_result', lambda *a, **k: None)} + + kitten = resolved_kitten(kitten) + m = importlib.import_module('kittens.{}.main'.format(kitten)) + return {'start': m.main, 'end': getattr(m, 'handle_result', lambda *a, **k: None)} def create_kitten_handler(kitten, orig_args):