From 47b92f66823d22e35fd09f7f22d540e23a6624e3 Mon Sep 17 00:00:00 2001 From: m455 Date: Mon, 11 Mar 2019 20:52:07 -0400 Subject: [PATCH] updated via script --- README.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 723483f..1b3925e 100644 --- a/README.md +++ b/README.md @@ -16,13 +16,7 @@ Now the default directory and todo list file have better default permissions: # Todos - **Really weird bug to solve**: `~/.rodo/todo.txt`'s file permissions change from `rw-------` to `rw-rw-r--` or `rw-rw-rw` after being modified - - So far, the only solution I know of would be to do: - ```racket - (begin - (display-to-file "this is a test" "/home/username/.rodo/todo.txt" #:mode 'text #:exists 'replace) - (file-or-directory-permissions "/home/username/.rodo/todo.txt" #o600)) - ``` - - For example, try running: + - For example, run: ```racket (file-or-directory-permissions "/home/username/.rodo/todo.txt" #o600) ``` @@ -31,6 +25,12 @@ Now the default directory and todo list file have better default permissions: ```racket (display-to-file "this is a test" "/home/username/.rodo/todo.txt" #:mode 'text #:exists 'replace) ``` + - So far, the only solution I know of would be to do: + ```racket + (begin + (display-to-file "this is a test" "/home/username/.rodo/todo.txt" #:mode 'text #:exists 'replace) + (file-or-directory-permissions "/home/username/.rodo/todo.txt" #o600)) + ``` - Then check the file permissions again with `ls -l` to see the change - Add color option to `config.rkt` file - Encrypt `todo.txt` file