🔧 config, data, settings: use user-specific config paths instead of hardcoded paths

This commit is contained in:
sankalp committed 2025-06-22 20:05:10 +05:45
1 parent c323b4ead9
commit 380e2dbb1a
7 files changed
+39 -27

No files matched your search

+3 -1
View File
@@ -40,7 +40,9 @@ DOCK_THEME = "Pills"
def load_config():
"""Load the configuration from config.json"""
config_path = os.path.expanduser(f"~/{APP_NAME_CAP}/config/json/config.json")
config_path = os.path.expanduser(
f"~/.config/{APP_NAME_CAP}/config/json/config.json"
)
config = {}
if os.path.exists(config_path):