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] 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()