From 9631ada0d253780004853f14faa3a7cff82158a9 Mon Sep 17 00:00:00 2001 From: "Ignas Anikevicius (gns_ank)" Date: Thu, 10 Jan 2013 02:22:46 +0200 Subject: [PATCH] Menubar utils fix the wm_name matching once more. The previous attempt at making the utils.wm_name variable useful for accessing some entries was silly. This is because a typical ShowOnlyIn string would look as: 'Unity;Gnome;KDE;' and the matching currently is done for the whole string, where as we need to match only a part of it. This small (hackish) commit fixes that, or do we wanna parse this line of a .desktop file properly? Signed-off-by: Ignas Anikevicius (gns_ank) Signed-off-by: Uli Schlachter --- lib/menubar/utils.lua.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/menubar/utils.lua.in b/lib/menubar/utils.lua.in index 62c570a83..9f280ecdc 100644 --- a/lib/menubar/utils.lua.in +++ b/lib/menubar/utils.lua.in @@ -154,7 +154,7 @@ function utils.parse(file) -- Only show the program if there is no OnlyShowIn attribute -- or if it's equal to utils.wm_name - if program.OnlyShowIn ~= nil and program.OnlyShowIn ~= utils.wm_name then + if program.OnlyShowIn ~= nil and not program.OnlyShowIn:match(utils.wm_name) then program.show = false end