From 111502579fea3aa9a083f09c4078f1bdcef6f7b5 Mon Sep 17 00:00:00 2001 From: XeonSquared Date: Thu, 11 Nov 2021 08:15:36 +1100 Subject: [PATCH] fix an error when zombie processes don't need to be killed --- rc.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rc.lua b/rc.lua index a4d54bb..e9a1037 100644 --- a/rc.lua +++ b/rc.lua @@ -99,7 +99,9 @@ awful.layout.layouts = { function restart() for k,v in pairs(zombies) do - awful.spawn.easy_async(string.format("kill %d",v)) + if type(v) == "number" then + awful.spawn.easy_async(string.format("kill %d",v)) + end end awesome.restart() end