From 3d3876573405509bbeace91c171c8ac28a71dafa Mon Sep 17 00:00:00 2001 From: Clement Lefebvre Date: Thu, 26 Sep 2019 09:57:10 +0100 Subject: [PATCH] Applications: Fix empty apps when a category has no icon --- usr/lib/linuxmint/mintMenu/plugins/applications.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/usr/lib/linuxmint/mintMenu/plugins/applications.py b/usr/lib/linuxmint/mintMenu/plugins/applications.py index 2a84a25..c52a83f 100755 --- a/usr/lib/linuxmint/mintMenu/plugins/applications.py +++ b/usr/lib/linuxmint/mintMenu/plugins/applications.py @@ -1623,7 +1623,10 @@ class pluginclass(object): for child in get_contents(menu.directory): if isinstance(child, MateMenu.TreeDirectory): name = child.get_name() - icon = child.get_icon().to_string() + if child.get_icon() is None: + icon = "applications-other" + else: + icon = child.get_icon().to_string() newCategoryList.append({"name": name, "icon": icon, "tooltip": name,