From 651479f254b15d0991f4907903f7a8009fbda241 Mon Sep 17 00:00:00 2001 From: Lucas de Vries Date: Thu, 14 Aug 2008 00:22:50 +0200 Subject: [PATCH] awful: don't try to spawn nil or empty commands --- lib/awful.lua.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/awful.lua.in b/lib/awful.lua.in index 79135e03..c034bfd2 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.