menubar.utils: Fix generator usage
:lines() generator in parse_dir function was not used properly which caused problems when using LuaJIT. Signed-off-by: Alexander Yakushev <yakushev.alex@gmail.com> Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
6841999a47
commit
3ce52aaab2
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue