diff --git a/lib/menubar/utils.lua.in b/lib/menubar/utils.lua.in index 3c6aa1e7..3e4938a5 100644 --- a/lib/menubar/utils.lua.in +++ b/lib/menubar/utils.lua.in @@ -180,8 +180,8 @@ end -- @return A table with all .desktop entries. function parse_dir(dir) local programs = {} - local files = io.popen('find '.. dir ..' -maxdepth 1 -name "*.desktop"'):lines() - for file in files do + local files = io.popen('find '.. dir ..' -maxdepth 1 -name "*.desktop"') + for file in files:lines() do table.insert(programs, parse(file)) end return programs