From ecf6b55b5531a9f52c7b1c1520a33b5b86c5cd63 Mon Sep 17 00:00:00 2001 From: dyslesiq Date: Fri, 27 Nov 2015 11:44:47 +0100 Subject: [PATCH] Added value check of required 'Name' entry in .desktop parsing Closes https://github.com/awesomeWM/awesome/pull/574. --- lib/menubar/utils.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/menubar/utils.lua b/lib/menubar/utils.lua index 0c9bdc32..5c9e1e08 100644 --- a/lib/menubar/utils.lua +++ b/lib/menubar/utils.lua @@ -188,6 +188,9 @@ function utils.parse(file) -- In case [Desktop Entry] was not found if not desktop_entry then return nil end + -- In case the (required) 'Name' entry was not found + if not program.Name or program.Name == '' then return nil end + -- Don't show program if NoDisplay attribute is false if program.NoDisplay and string.lower(program.NoDisplay) == "true" then program.show = false