X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/b0209bd820dd5d8c6a2de893444953490f531de0..79687bad24e8b782fca0e4270e282a10f3bd56c3:/widgets/imap.lua?ds=sidebyside diff --git a/widgets/imap.lua b/widgets/imap.lua index 62b33d7..ea763df 100644 --- a/widgets/imap.lua +++ b/widgets/imap.lua @@ -43,9 +43,7 @@ local function worker(args) if not is_plain then - local f = io.popen(password) - password = f:read("*all"):gsub("\n", "") - f:close() + password = helpers.read_pipe(password):gsub("\n", "") end imap.widget = wibox.widget.textbox('')