X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/945f220e022e69c1aeda0ee86558be26f19bdd40..6603c641c6ce675b010ca1977423747ca55d8795:/widgets/fs.lua?ds=inline diff --git a/widgets/fs.lua b/widgets/fs.lua index c3a9e18..a01d3cf 100644 --- a/widgets/fs.lua +++ b/widgets/fs.lua @@ -38,9 +38,7 @@ end function fs:show(t_out) fs:hide() - local f = io.popen(helpers.scripts_dir .. "dfs") - ws = f:read("*all"):gsub("\n*$", "") - f:close() + ws = helpers.read_pipe(helpers.scripts_dir .. "dfs"):gsub("\n*$", "") if fs.followmouse then fs.notification_preset.screen = mouse.screen