Use spaces in xdg-icon script
This commit is contained in:
parent
5c9903db46
commit
274c950af7
@ -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)])
|
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:
|
if len(sys.argv) < 3:
|
||||||
print("Usage:", sys.argv[0], "ICON SIZE")
|
print("Usage:", sys.argv[0], "ICON SIZE")
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
for theme in themes:
|
for theme in themes:
|
||||||
icon = xdg.IconTheme.getIconPath(sys.argv[1], theme = theme, size = int(sys.argv[2]))
|
icon = xdg.IconTheme.getIconPath(sys.argv[1], theme = theme, size = int(sys.argv[2]))
|
||||||
if icon is not None:
|
if icon is not None:
|
||||||
break
|
break
|
||||||
|
|
||||||
if icon is None:
|
if icon is None:
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
print(icon)
|
print(icon)
|
||||||
|
Loading…
Reference in New Issue
Block a user