From 05dda652dbc95fe2635f4d8fe94e7f7f61ebaec1 Mon Sep 17 00:00:00 2001 From: redxef Date: Fri, 28 Oct 2022 21:55:04 +0200 Subject: [PATCH] Don't split string. --- i3toolwait | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/i3toolwait b/i3toolwait index 420c4fa..117cfba 100755 --- a/i3toolwait +++ b/i3toolwait @@ -295,7 +295,7 @@ async def run(configs: list[dict], *, timeout: int, debug: bool): for cfg in configs: cfg['filter'] = parse(cfg['filter']) p = cfg['program'] - if isinstance(p, collections.abc.Iterable): + if isinstance(p, collections.abc.Iterable) and not isinstance(p, str): p = ' '.join(p) coroutines += [ipc.command(f'exec {p}')] await asyncio.gather(*coroutines)