From b9011504a578387328d898468d115392b06e370a Mon Sep 17 00:00:00 2001 From: George Vlahavas Date: Sun, 14 Jul 2024 01:10:38 +0300 Subject: [PATCH] Add svg icon support for icewm Well... apparently IceWM has had support for svg icons since 2017 and I had totally missed that. Thanks to SteelT1 for reporting this. Fixes #29. --- src/xdgmenumaker | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/xdgmenumaker b/src/xdgmenumaker index 48111d5..3dba344 100755 --- a/src/xdgmenumaker +++ b/src/xdgmenumaker @@ -295,8 +295,8 @@ def icon_full_path(icon): ext = os.path.splitext(icon)[1].lower() if os.path.exists(icon): if ext == ".svg" or ext == ".svgz": - # only jwm supports svg icons - if desktop == "jwm" and not nosvg: + # only jwm and icewm support svg icons + if (desktop == "jwm" or desktop == "icewm") and not nosvg: return icon else: # icon is not svg @@ -308,8 +308,8 @@ def icon_full_path(icon): icon = icon_strip(icon) icon_theme = gtk.icon_theme_get_default() try: - # JWM supports svg icons - if desktop == "jwm" and not nosvg: + # JWM and IceWM support svg icons + if (desktop == "jwm" or desktop == "icewm") and not nosvg: icon = icon_theme.lookup_icon(icon, iconsize, gtk.ICON_LOOKUP_FORCE_SVG) # but none of the other WMs does else: