From bf2ec1b70d7438a555a6957fb9dee221c668800c Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Sat, 23 Sep 2023 11:23:44 -0300 Subject: etc/guix/home.scm: Fix more hardcoded values in tg(1) --- etc/guix/home.scm | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/etc/guix/home.scm b/etc/guix/home.scm index 0b9ae36..bf739f4 100644 --- a/etc/guix/home.scm +++ b/etc/guix/home.scm @@ -430,13 +430,17 @@ libraries/software/operating systems #:tests? #f ; no tests #:phases #~(modify-phases %standard-phases - (add-after 'unpack 'fix-hardcoded-api-keys + (add-after 'unpack 'fix-some-hardcoded-strings (lambda _ (substitute* "tg/config.py" (("API_ID = .*") "API_ID = os.getenv(\"TG_API_ID\")\n") (("API_HASH = .*") - "API_HASH = os.getenv(\"TG_API_HASH\")\n"))))))) + "API_HASH = os.getenv(\"TG_API_HASH\")\n") + (("NOTIFY_CMD = .*") + "NOTIFY_CMD = \"notify-send -a tg -i {icon_path} {title} '{subtitle}|{msg}'\"\n") + (("LONG_MSG_CMD = .*") + "LONG_MSG_CMD = \"vi {file_path}\"\n"))))))) (native-inputs (list python-poetry-core)) -- cgit v1.2.3