From a59072ae82a915df3ff870a6ff6d9fab3b57f9ec Mon Sep 17 00:00:00 2001 From: gryf Date: Sat, 20 Feb 2021 19:41:19 +0100 Subject: [PATCH] Fix empty icon detection. --- urxvt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/urxvt.py b/urxvt.py index 661c281..6c5f04f 100755 --- a/urxvt.py +++ b/urxvt.py @@ -313,7 +313,7 @@ class Urxvt: bold = ','.join([f.bold for f in self.fonts if f.bold]) if bold: args.extend(['-fb', bold]) - if os.path.exists(os.path.join(ICON_PATH, self.icon)): + if self.icon and os.path.exists(os.path.join(ICON_PATH, self.icon)): args.extend(['-icon', os.path.join(ICON_PATH, self.icon)]) if self._exec: