From 7010641ed809ba1f97176a8dd4d221f783540dc8 Mon Sep 17 00:00:00 2001 From: fz0x1 Date: Tue, 11 Feb 2025 19:29:18 +0100 Subject: [PATCH] 20250211.1739298558 --- global/scripts/bin/diary.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/global/scripts/bin/diary.py b/global/scripts/bin/diary.py index 7fa69dd..cf3d92c 100755 --- a/global/scripts/bin/diary.py +++ b/global/scripts/bin/diary.py @@ -659,6 +659,17 @@ if __name__ == "__main__": except Exception as e: print(f"Connection problem: {e}") raise + + try: + # I want to know if diary is encrypted... + subprocess.run( + ["jrnl", "--decrypt"], + input=b"", # Пустой ввод, чтобы не ввести пароль + ) + except Exception as e: + print(str(e)) + raise + else: if sys.argv[1] == "export": export()