From 955d14d112eadebeb3f1e59b00506bdf1d0aa224 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Neto?= Date: Wed, 26 Oct 2016 10:37:43 -0300 Subject: [PATCH 1/2] Fix icons custom images --- src/xdgmenumaker | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/xdgmenumaker b/src/xdgmenumaker index 30707b1..9a720ac 100755 --- a/src/xdgmenumaker +++ b/src/xdgmenumaker @@ -291,9 +291,11 @@ def icon_full_path(icon): # in non-standard directories if os.path.exists(icon): if max_icon_size: + if os.path.splitext(icon)[1] == ".svg": + return icon return icon_max_size(icon) else: - return None + return icon else: icon = icon_strip(icon) icon_theme = gtk.icon_theme_get_default() From cba47191d3f5dacd443c4890c73f1d97a9c75e8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Neto?= Date: Wed, 26 Oct 2016 10:41:32 -0300 Subject: [PATCH 2/2] Update xdgmenumaker --- src/xdgmenumaker | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xdgmenumaker b/src/xdgmenumaker index 9a720ac..16b5300 100755 --- a/src/xdgmenumaker +++ b/src/xdgmenumaker @@ -291,8 +291,8 @@ def icon_full_path(icon): # in non-standard directories if os.path.exists(icon): if max_icon_size: - if os.path.splitext(icon)[1] == ".svg": - return icon + if os.path.splitext(icon)[1] == ".svg": + return icon return icon_max_size(icon) else: return icon