From 4d5a3eb3ba836fe2b17d4993904816d553f3f371 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Sat, 10 Oct 2015 20:26:07 +0200 Subject: [PATCH] Fix awful.util.spawn*/.pread deprecation wrappers - Fix `util.spawn_with_shell`. - Provide deprecation wrapper for awful.util.pread. - Return in deprecation wrapper for awful.util.spawn*. Closes https://github.com/awesomeWM/awesome/pull/506. Closes https://github.com/awesomeWM/awesome/pull/511. --- lib/awful/init.lua | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/lib/awful/init.lua b/lib/awful/init.lua index 750c8af12..52eab8319 100644 --- a/lib/awful/init.lua +++ b/lib/awful/init.lua @@ -16,17 +16,22 @@ function timer(...) end --TODO: This is a hack for backwards-compatibility with 3.5, remove! --- Set awful.util.spawn* +-- Set awful.util.spawn* and awful.util.pread. local spawn = require("awful.spawn") util.spawn = function(...) util.deprecate("awful.spawn") - spawn.spawn(...) + return spawn.spawn(...) end util.spawn_with_shell = function(...) util.deprecate("awful.spawn.with_shell") - spawn.spawn_with_shell(...) + return spawn.with_shell(...) +end + +util.pread = function(...) + util.deprecate("awful.spawn.pread") + return spawn.pread(...) end return