diff options
author | zachir <zachir@librem.one> | 2023-03-18 12:59:08 -0500 |
---|---|---|
committer | zachir <zachir@librem.one> | 2023-03-18 12:59:08 -0500 |
commit | 417bbe32cd8994542ad9739cabc89f0eaeac3e90 (patch) | |
tree | 84b4a20a126dc9cdbd0888524be5dafa53df1e60 /awesome | |
parent | bca51bdf1c88c84cd39e7f667b92c84066253b51 (diff) |
have callback return false for error and pid for success (no error code)
Diffstat (limited to 'awesome')
-rw-r--r-- | awesome/rc.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/awesome/rc.lua b/awesome/rc.lua index 463150d..ab8348b 100644 --- a/awesome/rc.lua +++ b/awesome/rc.lua @@ -855,7 +855,7 @@ function get_parent_pid(child_ppid, callback) awful.spawn.easy_async(ppid_cmd, function(stdout, stderr, reason, exit_code) -- primitive error checking if stderr and stderr ~= "" then - callback(stderr, false) + callback(nil, false) return end local ppid = stdout:gsub(" ", ""):gsub("\n", "") |