summaryrefslogtreecommitdiffstats
path: root/lib/menubuilder.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lib/menubuilder.lua')
-rw-r--r--lib/menubuilder.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/menubuilder.lua b/lib/menubuilder.lua
index c7ff075..4105db6 100644
--- a/lib/menubuilder.lua
+++ b/lib/menubuilder.lua
@@ -5,12 +5,14 @@
]]--
module(..., package.seeall)
+require("format")
+
-- returns a table of the "*.menu" tables
-- uses the system "find" command
-- startdir should be the app dir.
local get_candidates = function (startdir)
local t = {}
- local fh = io.popen('find ' .. startdir .. ' -name "*.menu"')
+ local fh = io.popen('find ' .. format.escapespecialcharacters(startdir) .. ' -name "*.menu"')
for x in fh:lines() do
t[#t + 1] = x
end