Added value check of required 'Name' entry in .desktop parsing
Closes https://github.com/awesomeWM/awesome/pull/574.
This commit is contained in:
parent
97048de60e
commit
ecf6b55b55
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue