From ad877e84f515cf922d9a7faec11ec0b3e4e0eb1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Jaenisch?= Date: Fri, 18 Oct 2024 21:46:57 +0200 Subject: [PATCH] fix: ensure konsole dir exists MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On AwesomeWM without a KDE setup this caused Yin-Yang to fail starting up. Signed-off-by: André Jaenisch --- yin_yang/plugins/konsole.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/yin_yang/plugins/konsole.py b/yin_yang/plugins/konsole.py index 5d45813..8c6a718 100644 --- a/yin_yang/plugins/konsole.py +++ b/yin_yang/plugins/konsole.py @@ -122,6 +122,9 @@ def available(self) -> bool: @property def default_profile(self): value = None + # Ensure directory exists + Path(self.user_path).mkdir(parents=True, exist_ok=True) + # cant use config parser because of weird file structure with self.config_path.open('r') as file: for line in file: