mail_count(): open read only.

This commit is contained in:
Kolan Sh 2016-09-25 17:47:11 +03:00
parent 37a1f0690b
commit aac2863441
1 changed files with 1 additions and 1 deletions

2
rc.lua
View File

@ -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()