aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--etc/guix/home.scm8
1 files changed, 8 insertions, 0 deletions
diff --git a/etc/guix/home.scm b/etc/guix/home.scm
index bf739f4..4059b5f 100644
--- a/etc/guix/home.scm
+++ b/etc/guix/home.scm
@@ -433,6 +433,14 @@ libraries/software/operating systems
(add-after 'unpack 'fix-some-hardcoded-strings
(lambda _
(substitute* "tg/config.py"
+ (("CONFIG_DIR = .*")
+ "CONFIG_DIR = (os.getenv('XDG_CONFIG_HOME') or os.getenv('HOME') + '/.config') + '/tg'\n")
+ (("FILES_DIR = .*")
+ "FILES_DIR = (os.getenv('XDG_CACHE_HOME') or os.getenv('HOME') + '/.cache') + '/tg'\n")
+ (("LOG_PATH = .*")
+ "LOG_PATH = (os.getenv('XDG_DATA_HOME') or os.getenv('HOME') + '/.local/share') + '/tg'\n")
+ (("DOWNLOAD_DIR = .*")
+ "DOWNLOAD_DIR = os.getenv('HOME') + '/Downloads/'\n")
(("API_ID = .*")
"API_ID = os.getenv(\"TG_API_ID\")\n")
(("API_HASH = .*")