From 386ccf3729f9958b9127d928f2dc7f9c6958457a Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Wed, 13 Aug 2025 16:10:40 +1000 Subject: paths: allow configuring via env vars Closes #39 --- src/caelestia/utils/paths.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/caelestia/utils') diff --git a/src/caelestia/utils/paths.py b/src/caelestia/utils/paths.py index f94be5b..d3a451c 100644 --- a/src/caelestia/utils/paths.py +++ b/src/caelestia/utils/paths.py @@ -27,16 +27,16 @@ scheme_path = c_state_dir / "scheme.json" scheme_data_dir = cli_data_dir / "schemes" scheme_cache_dir = c_cache_dir / "schemes" -wallpapers_dir = pictures_dir / "Wallpapers" +wallpapers_dir = pictures_dir / os.getenv("CAELESTIA_WALLPAPERS_DIR", "Wallpapers") wallpaper_path_path = c_state_dir / "wallpaper/path.txt" wallpaper_link_path = c_state_dir / "wallpaper/current" wallpaper_thumbnail_path = c_state_dir / "wallpaper/thumbnail.jpg" wallpapers_cache_dir = c_cache_dir / "wallpapers" -screenshots_dir = pictures_dir / "Screenshots" +screenshots_dir = pictures_dir / os.getenv("CAELESTIA_SCREENSHOTS_DIR", "Screenshots") screenshots_cache_dir = c_cache_dir / "screenshots" -recordings_dir = videos_dir / "Recordings" +recordings_dir = videos_dir / os.getenv("CAELESTIA_RECORDINGS_DIR", "Recordings") recording_path = c_state_dir / "record/recording.mp4" recording_notif_path = c_state_dir / "record/notifid.txt" -- cgit v1.2.3-freya