From 27ffe0084a62c37526b39ece9c574416ad67f972 Mon Sep 17 00:00:00 2001 From: Sergei Trofimov Date: Fri, 5 Aug 2016 10:09:18 +0100 Subject: [PATCH] asyncshell: minor fix to spawn with shell invocation Fixed an erroneous call to "awful.spawn.with_shell" when "with_shell" is not defined. --- asyncshell.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/asyncshell.lua b/asyncshell.lua index a8e3676..61336db 100644 --- a/asyncshell.lua +++ b/asyncshell.lua @@ -52,7 +52,7 @@ function asyncshell.request(command, callback, timeout) id, formatted_command ) - if type(awful.spawn) == 'table' then + if type(awful.spawn) == 'table' and awful.spawn.with_shell then awful.spawn.with_shell(req) else awful.util.spawn_with_shell(req) -- 2.39.2