Bug is described here:
https://awesome.naquadah.org/bugs/index.php?do=details&task_id=979
--
Alexander Yakushev
"If or if-not. There is no try..catch-based flow control in Clojure."
-- Master Joda
>From 1354d899daae129c32531c860f2e36bc20eff169 Mon Sep 17 00:00:00 2001
From: Alexander Yakushev <[email protected]>
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 <[email protected]>
---
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 3c6aa1e..3e4938a 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
--
1.7.9.4