diff --git a/screenshot.lua b/screenshot.lua index 459ae6b..b548f9c 100644 --- a/screenshot.lua +++ b/screenshot.lua @@ -30,7 +30,7 @@ function scrot_delay() end function scrot(cmd , callback, args) - awful.util.spawn_with_shell(cmd) + awful.spawn("/bin/bash -c "..'"'..cmd..'"') callback(args) end function scrot_callback(text) @@ -38,4 +38,5 @@ function scrot_callback(text) text = text, timeout = 0.5 }) -end \ No newline at end of file +end +