From 3eb264109ac74313d8b2717d3cf6c52a48bebdd1 Mon Sep 17 00:00:00 2001 From: Daniel Seichter Date: Sun, 9 Jun 2024 20:42:40 +0200 Subject: [PATCH 1/2] Add known issues to readme --- README.md | 4 ++++ src/settings.py | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 02bec7c..cfc309b 100644 --- a/README.md +++ b/README.md @@ -35,6 +35,10 @@ I am asked from time to time if I would like to offer more than six commands. Th Workdir can be used multiple times. Create a subfolder each time, which you name “Development” or “Projects”, for example. Copy the application file into these directories. When you start the program, it will check if there is already a configuration there (if not, the program will create it automatically). Now you can define different commands, independent of the category. For example, the opening or updating (git pull) of directories with source code. Or automatic generation of thumbnails or conversion of file formats. The variety knows no limits. Workdir supports you in meeting these requirements as well. +## Known Issues + +If you run workdir the first time, the window can be really small. The size will be auto adjusted based on your directories. So please proceed by adding your directories. + # Contributing If you want to contribute by fixing an issue, add a new function or just optimize something, a simple instruction how to start development. diff --git a/src/settings.py b/src/settings.py index bfceeca..78ca429 100644 --- a/src/settings.py +++ b/src/settings.py @@ -11,7 +11,9 @@ def create_config(): except FileNotFoundError: with open(CONFIGFILE, 'w') as f: f.write('{}') - data = {} + + with open(CONFIGFILE, 'r') as f: + data = json.load(f) if 'directories' not in data: data['directories'] = [] From 400f2ed1e8fc9f0f0d4910d6e63b86b4f98507b2 Mon Sep 17 00:00:00 2001 From: Daniel Seichter Date: Sun, 9 Jun 2024 20:43:20 +0200 Subject: [PATCH 2/2] Add known issues to readme --- src/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/settings.py b/src/settings.py index 78ca429..f0acddd 100644 --- a/src/settings.py +++ b/src/settings.py @@ -13,7 +13,7 @@ def create_config(): f.write('{}') with open(CONFIGFILE, 'r') as f: - data = json.load(f) + data = json.load(f) if 'directories' not in data: data['directories'] = []