From 9205feea5e6fb23769af45e5f2253814598ad522 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Fri, 26 Feb 2016 22:22:01 +0100 Subject: [PATCH] menubar: rename utils.parse to utils.parse_desktop_file --- lib/menubar/utils.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/menubar/utils.lua b/lib/menubar/utils.lua index 21012994..da9ecd1a 100644 --- a/lib/menubar/utils.lua +++ b/lib/menubar/utils.lua @@ -161,7 +161,7 @@ end --- Parse a .desktop file. -- @param file The .desktop file. -- @return A table with file entries. -function utils.parse(file) +function utils.parse_desktop_file(file) local program = { show = true, file = file } local desktop_entry = false @@ -247,7 +247,7 @@ function utils.parse_dir(dir) local programs = {} local files = io.popen('find '.. dir .." -name '*.desktop' 2>/dev/null") for file in files:lines() do - local program = utils.parse(file) + local program = utils.parse_desktop_file(file) if program then table.insert(programs, program) end