From 2badbed440d717a631678e970b0324fdbc78ff20 Mon Sep 17 00:00:00 2001 From: Gregor Best Date: Sat, 24 Nov 2012 17:58:15 +0100 Subject: [PATCH] Menubar: silence find warnings Signed-off-by: Gregor Best Signed-off-by: Uli Schlachter --- lib/menubar/utils.lua.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/menubar/utils.lua.in b/lib/menubar/utils.lua.in index 40a30afe..e45a8bca 100644 --- a/lib/menubar/utils.lua.in +++ b/lib/menubar/utils.lua.in @@ -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