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()