From 4540b8927a61d97d9536dd7500deeed688605a38 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Sun, 10 Mar 2013 15:00:05 +0100 Subject: [PATCH] awful.util.spawn_with_shell: Use table as argument Thanks to the previous commit, spawn_with_shell() can now easily fix lots of problems that we previously had with escaping the argument to the shell. Signed-off-by: Uli Schlachter --- lib/awful/util.lua.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/awful/util.lua.in b/lib/awful/util.lua.in index 8b438c38..b92869fe 100644 --- a/lib/awful/util.lua.in +++ b/lib/awful/util.lua.in @@ -86,7 +86,7 @@ end -- @param screen The screen where to run the command. function util.spawn_with_shell(cmd, screen) if cmd and cmd ~= "" then - cmd = util.shell .. " -c \"" .. cmd .. "\"" + cmd = { util.shell, "-c", cmd } return capi.awesome.spawn(cmd, false, screen or capi.mouse.screen) end end