diff --git a/lib/menubar/utils.lua.in b/lib/menubar/utils.lua.in index 40a30afe6..e45a8bcab 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