Fix the deprecation warning:

awful.util.spawn_with_shell
This commit is contained in:
Quan Guo 2016-02-29 21:28:51 +01:00
parent 466c48d20a
commit 568195ca49
1 changed files with 5 additions and 1 deletions

View File

@ -52,7 +52,11 @@ function asyncshell.request(command, callback, timeout)
id, formatted_command 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 if timeout then
asyncshell.request_table[id].timer = timer({ timeout = timeout }) asyncshell.request_table[id].timer = timer({ timeout = timeout })