X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/b0209bd820dd5d8c6a2de893444953490f531de0..64540340dbe9071bc716c73ca4c90df14fdd6302:/widgets/imap.lua diff --git a/widgets/imap.lua b/widgets/imap.lua index 62b33d7..de2f7b4 100644 --- a/widgets/imap.lua +++ b/widgets/imap.lua @@ -41,11 +41,8 @@ local function worker(args) helpers.set_map(mail, 0) - if not is_plain - then - local f = io.popen(password) - password = f:read("*all"):gsub("\n", "") - f:close() + if not is_plain then + password = helpers.read_pipe(password):gsub("\n", "") end imap.widget = wibox.widget.textbox('')