From 5f4209bcda29d945529a19497f9efdc299b89bf8 Mon Sep 17 00:00:00 2001 From: Robin Candau Date: Sun, 19 May 2024 21:12:54 +0200 Subject: [PATCH] Add $HOME/.local/share as possible prefix/path for translation files --- src/script/arch-update-tray.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/script/arch-update-tray.py b/src/script/arch-update-tray.py index 382f602..e806f67 100755 --- a/src/script/arch-update-tray.py +++ b/src/script/arch-update-tray.py @@ -29,6 +29,8 @@ paths.extend(os.environ['XDG_DATA_DIRS'].split(":")) if 'XDG_DATA_HOME' in os.environ: paths.extend(os.environ['XDG_DATA_HOME'].split(":")) +if 'HOME' in os.environ: + paths.extend(os.environ['HOME'], '.local', 'share'.split(":")) paths.extend(['/usr/share', '/usr/local/share']) _ = None for path in paths: