✨ feat(config): expand user paths in wallpapers_dir for flexibility
This commit is contained in:
1 file changed
+2
-1
+2
-1
@@ -76,7 +76,8 @@ def load_config():
|
|||||||
if os.path.exists(CONFIG_FILE):
|
if os.path.exists(CONFIG_FILE):
|
||||||
with open(CONFIG_FILE, "r") as f:
|
with open(CONFIG_FILE, "r") as f:
|
||||||
config = json.load(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")
|
DOCK_POSITION = config.get("dock_position", "Bottom")
|
||||||
TERMINAL_COMMAND = config.get("terminal_command", "kitty -e")
|
TERMINAL_COMMAND = config.get("terminal_command", "kitty -e")
|
||||||
DOCK_ENABLED = config.get("dock_enabled", True)
|
DOCK_ENABLED = config.get("dock_enabled", True)
|
||||||
|
|||||||
Reference in new issue
Block a user