diff --git a/lib/awful.lua.in b/lib/awful.lua.in index 79135e034..c034bfd2f 100644 --- a/lib/awful.lua.in +++ b/lib/awful.lua.in @@ -765,7 +765,9 @@ end -- @param cmd The command. -- @return The os.execute() return value. function spawn(cmd) - return os.execute(cmd .. "&") + if cmd and cmd ~= "" then + return os.execute(cmd .. "&") + end end --- Eval Lua code.