✨ feat(config): expand user paths in wallpapers_dir for flexibility

This commit is contained in:
sankalp committed 2025-08-13 00:48:59 +05:45
1 parent e0bb21be35
commit 0868ff3964
1 file changed
+2 -1
+2 -1
View File
@@ -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)