menubar.utils: Allow to add programs with OnlyShowIn option being set

Bug: https://github.com/awesomeWM/awesome/issues/2377

Signed-off-by: Michael Perlov <perlovka@gmail.com>
This commit is contained in:
Michael Perlov 2018-08-29 22:39:07 +03:00
parent d0afcaa338
commit cbb8f41261
No known key found for this signature in database
GPG Key ID: AF9795B9F8164CEA
1 changed files with 1 additions and 1 deletions

View File

@ -354,7 +354,7 @@ function utils.parse_desktop_file(file)
if program.OnlyShowIn then
program.show = false -- Assume false until found
for _, wm in ipairs(program.OnlyShowIn) do
if wm == utils.wm_name then
if wm:match(utils.wm_name) then
program.show = true
break
end