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:
parent
d0afcaa338
commit
cbb8f41261
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue