X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/47a00516d88c42378b487ba302835097c3138099..7a4c3345fbd181b53af1473f09735c202827438e:/asyncshell.lua diff --git a/asyncshell.lua b/asyncshell.lua index 2d6b7e3..a8e3676 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' 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 })