X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/0f5ce4dd76e96524ce7a534d228a212f51eb5c93..91c1b804b92653b3c0c6d65e676033e84527014d:/widgets/base.lua?ds=sidebyside

diff --git a/widgets/base.lua b/widgets/base.lua
index 4f28e07..39b0863 100644
--- a/widgets/base.lua
+++ b/widgets/base.lua
@@ -9,10 +9,10 @@
 local newtimer     = require("lain.helpers").newtimer
 local wibox        = require("wibox")
 
-local io           = io
+local io           = { popen = io.popen }
 local setmetatable = setmetatable
 
--- Basic template for custom widgets 
+-- Basic template for custom widgets
 -- lain.widgets.base
 
 local function worker(args)
@@ -26,7 +26,7 @@ local function worker(args)
 
     function base.update()
         local f = assert(io.popen(cmd))
-        output = f:read("*all")
+        output = f:read("*a")
         f:close()
         widget = base.widget
         settings()