From 274c950af7d07604b475b837f001757d4241fb27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Wed, 18 Sep 2019 01:47:46 +0200 Subject: [PATCH] Use spaces in xdg-icon script --- qubes-rpc/xdg-icon | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/qubes-rpc/xdg-icon b/qubes-rpc/xdg-icon index d42c702..8492c8d 100755 --- a/qubes-rpc/xdg-icon +++ b/qubes-rpc/xdg-icon @@ -7,15 +7,15 @@ themes = ['Humanity', 'Adwaita', 'gnome', 'oxygen'] themes = themes + sorted([d for d in os.listdir("/usr/share/icons") if d not in themes and os.path.isdir("/usr/share/icons/" + d)]) if len(sys.argv) < 3: - print("Usage:", sys.argv[0], "ICON SIZE") - sys.exit(1) + print("Usage:", sys.argv[0], "ICON SIZE") + sys.exit(1) for theme in themes: - icon = xdg.IconTheme.getIconPath(sys.argv[1], theme = theme, size = int(sys.argv[2])) - if icon is not None: - break + icon = xdg.IconTheme.getIconPath(sys.argv[1], theme = theme, size = int(sys.argv[2])) + if icon is not None: + break if icon is None: - sys.exit(1) + sys.exit(1) print(icon)