Added value check of required 'Name' entry in .desktop parsing

Closes https://github.com/awesomeWM/awesome/pull/574.
This commit is contained in:
dyslesiq 2015-11-27 11:44:47 +01:00 committed by Daniel Hahler
parent 97048de60e
commit ecf6b55b55

View file

@ -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