From 3dc53ff84c3bbe12677ce3846fb45e5ff0839efa Mon Sep 17 00:00:00 2001 From: Nils <> Date: Tue, 14 Jul 2020 00:05:06 +0200 Subject: [PATCH] Also look in scalable --- engine/findicons.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/engine/findicons.py b/engine/findicons.py index 19143ba..ac0baee 100644 --- a/engine/findicons.py +++ b/engine/findicons.py @@ -40,9 +40,11 @@ SEARCH_DIRECTORIES = [pathlib.Path(pathlib.Path.home(), ".icons")] XDG_DATA_DIRS = getenv("XDG_DATA_DIRS") #colon : separated, most likely empty if XDG_DATA_DIRS: SEARCH_DIRECTORIES += [pathlib.Path(p, "icons/hicolor") for p in XDG_DATA_DIRS.split(":")] + SEARCH_DIRECTORIES += [pathlib.Path(p, "icons/scalable") for p in XDG_DATA_DIRS.split(":")] else: #If $XDG_DATA_DIRS is either not set or empty, a value equal to /usr/local/share/:/usr/share/ should be used. SEARCH_DIRECTORIES += [pathlib.Path(p, "icons/hicolor") for p in "/usr/local/share/:/usr/share/".split(":")] + SEARCH_DIRECTORIES += [pathlib.Path(p, "icons/scalable") for p in "/usr/local/share/:/usr/share/".split(":")] SEARCH_DIRECTORIES.append(pathlib.Path("/usr/share/pixmaps"))