mail_count(): open read only.
This commit is contained in:
parent
37a1f0690b
commit
aac2863441
2
rc.lua
2
rc.lua
|
@ -183,7 +183,7 @@ mytasklist.buttons = awful.util.table.join(
|
||||||
|
|
||||||
-- My Mail updater widget
|
-- My Mail updater widget
|
||||||
function mail_count(filename)
|
function mail_count(filename)
|
||||||
local f = io.open(filename)
|
local f = io.open(filename, "r")
|
||||||
local l = nil
|
local l = nil
|
||||||
if f ~= nil then
|
if f ~= nil then
|
||||||
l = f:read()
|
l = f:read()
|
||||||
|
|
Loading…
Reference in New Issue