From: Quan Guo Date: Mon, 29 Feb 2016 20:28:51 +0000 (+0100) Subject: Fix the deprecation warning: X-Git-Url: https://git.madduck.net/etc/awesome.git/commitdiff_plain/568195ca492756ae47491ccbf18e5bca80b1f124?ds=inline;hp=466c48d20a13a447afaec373b700a5cd2e3fa877 Fix the deprecation warning: awful.util.spawn_with_shell --- 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 })