X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/c3559967dbed75d0169f4c69a987cf1c295d9165..6e54e1d62a0761d3fc61406ca0419fa94d90eae2:/widgets/fs.lua

diff --git a/widgets/fs.lua b/widgets/fs.lua
index c3a9e18..a1d5d95 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()
+    local ws = helpers.read_pipe(helpers.scripts_dir .. "dfs"):gsub("\n*$", "")
 
     if fs.followmouse then
         fs.notification_preset.screen = mouse.screen