From 1f20e8130a08f554a6bc19c3e7488cf5df8ad556 Mon Sep 17 00:00:00 2001 From: Bart Trojanowski Date: Fri, 4 Apr 2008 09:34:52 -0400 Subject: [PATCH] try harder when starting a new instance of wmiirc --- core/wmii.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/wmii.lua b/core/wmii.lua index 62455cc..1acf5d3 100644 --- a/core/wmii.lua +++ b/core/wmii.lua @@ -562,7 +562,9 @@ local action_handlers = { if wmiirc then log (" executing: lua " .. wmiirc) cleanup() - posix.exec ("lua", wmiirc) + posix.exec (wmiirc) + posix.exec ("/bin/sh", "-c", "exec lua wmiirc") + posix.exec ("/usr/bin/lua", wmiirc) end else log("sorry cannot restart; you don't have lua's posix library.") -- 2.11.4.GIT