From e6ddffda38da40b422e603c6f1229061bde9a9ae Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Sun, 17 Jul 2016 15:29:15 +0200 Subject: [PATCH] Fix awful.util.pread() return value (#1005) The deprecation wrapper that we still have for this function didn't return anything. However, awful.util.pread() used to return strings. This breaks script. Work around this by returning an empty string. That way code will still break, but at least it should not error out. Signed-off-by: Uli Schlachter --- lib/awful/init.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/awful/init.lua b/lib/awful/init.lua index 10a8500de..f83870e1d 100644 --- a/lib/awful/init.lua +++ b/lib/awful/init.lua @@ -32,6 +32,7 @@ end util.pread = function() util.deprecate("Use io.popen() directly or look at awful.spawn.easy_async() " .. "for an asynchronous alternative") + return "" end return