From 3ce52aaab222872e417aa114b3cccc7123382f1f Mon Sep 17 00:00:00 2001 From: Alexander Yakushev Date: Sat, 7 Apr 2012 12:01:33 +0300 Subject: [PATCH] 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 Signed-off-by: Uli Schlachter --- lib/menubar/utils.lua.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/menubar/utils.lua.in b/lib/menubar/utils.lua.in index 3c6aa1e77..3e4938a58 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