From 0868ff396432db3c1491b633f7d3ea91838fef89 Mon Sep 17 00:00:00 2001 From: S4NKALP Date: Wed, 13 Aug 2025 00:48:59 +0545 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(config):=20expand=20user=20pat?= =?UTF-8?q?hs=20in=20wallpapers=5Fdir=20for=20flexibility?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/data.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/data.py b/config/data.py index 7d586eb..9996f93 100644 --- a/config/data.py +++ b/config/data.py @@ -76,7 +76,8 @@ def load_config(): if os.path.exists(CONFIG_FILE): with open(CONFIG_FILE, "r") as f: config = json.load(f) - WALLPAPERS_DIR = config.get("wallpapers_dir", WALLPAPERS_DIR_DEFAULT) + wallpapers_dir_from_config = config.get("wallpapers_dir", WALLPAPERS_DIR_DEFAULT) + WALLPAPERS_DIR = os.path.expanduser(wallpapers_dir_from_config) DOCK_POSITION = config.get("dock_position", "Bottom") TERMINAL_COMMAND = config.get("terminal_command", "kitty -e") DOCK_ENABLED = config.get("dock_enabled", True)