X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/1a8ddf0e7fd88ec6f71c1a59aa4b2602c12cec50..7e4175f7aaef5c690afca3bc987107e2193a58df:/asyncshell.lua?ds=sidebyside diff --git a/asyncshell.lua b/asyncshell.lua index 2d6b7e3..61336db 100644 --- a/asyncshell.lua +++ b/asyncshell.lua @@ -52,7 +52,11 @@ function asyncshell.request(command, callback, timeout) id, formatted_command ) - awful.util.spawn_with_shell(req) + if type(awful.spawn) == 'table' and awful.spawn.with_shell then + awful.spawn.with_shell(req) + else + awful.util.spawn_with_shell(req) + end if timeout then asyncshell.request_table[id].timer = timer({ timeout = timeout })