diff options
author | EuAndreh <eu@euandre.org> | 2023-09-25 20:37:28 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2023-09-25 20:37:28 -0300 |
commit | 0ff6b1ccf60088c52ab72da6b22d79866447e789 (patch) | |
tree | aa990d0df214011873611d0dccdd97612714db45 | |
parent | etc/guix/home.scm: Fix more hardcoded values in tg(1) (diff) | |
download | dotfiles-0ff6b1ccf60088c52ab72da6b22d79866447e789.tar.gz dotfiles-0ff6b1ccf60088c52ab72da6b22d79866447e789.tar.xz |
etc/guix/home.scm: Patch more hardcoded paths in tg(1) package
-rw-r--r-- | etc/guix/home.scm | 8 |
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 = .*") |