mirror of
https://github.com/awesomeWM/awesome
synced 2024-11-17 07:47:41 +01:00
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
1 changed files with 3 additions and 0 deletions
|
@ -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 a new issue