Menubar: silence find warnings

Signed-off-by: Gregor Best <gbe@ring0.de>
Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Gregor Best 2012-11-24 17:58:15 +01:00 committed by Uli Schlachter
parent d3a05e4822
commit 2badbed440
1 changed files with 1 additions and 1 deletions

View File

@ -181,7 +181,7 @@ end
-- @return A table with all .desktop entries.
function utils.parse_dir(dir)
local programs = {}
local files = io.popen('find '.. dir ..' -maxdepth 1 -name "*.desktop"')
local files = io.popen('find '.. dir ..' -maxdepth 1 -name "*.desktop" 2>/dev/null')
for file in files:lines() do
table.insert(programs, utils.parse(file))
end