summaryrefslogtreecommitdiff
path: root/utils/Paths.qml
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-08-30 22:30:34 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-08-30 22:30:34 +1000
commit9659130fdbf33b3428e3b5753f447ec61993e01c (patch)
tree5a8129eb893eb01392f0922956984b3053759b54 /utils/Paths.qml
parentreadme/install: explain different aur packages (diff)
downloadcaelestia-shell-9659130fdbf33b3428e3b5753f447ec61993e01c.tar.gz
caelestia-shell-9659130fdbf33b3428e3b5753f447ec61993e01c.tar.bz2
caelestia-shell-9659130fdbf33b3428e3b5753f447ec61993e01c.zip
wallpapers: use CAELESTIA_WALLPAPERS_DIR env
Env var overrides config option
Diffstat (limited to '')
-rw-r--r--utils/Paths.qml2
1 files changed, 2 insertions, 0 deletions
diff --git a/utils/Paths.qml b/utils/Paths.qml
index 0a00c9d..6000486 100644
--- a/utils/Paths.qml
+++ b/utils/Paths.qml
@@ -1,5 +1,6 @@
pragma Singleton
+import qs.config
import Quickshell
import Qt.labs.platform
@@ -15,6 +16,7 @@ Singleton {
readonly property url config: `${StandardPaths.standardLocations(StandardPaths.GenericConfigLocation)[0]}/caelestia`
readonly property url imagecache: `${cache}/imagecache`
+ readonly property string wallsdir: Quickshell.env("CAELESTIA_WALLPAPERS_DIR") || Config.paths.wallpaperDir
readonly property string libdir: Quickshell.env("CAELESTIA_LIB_DIR") || "/usr/lib/caelestia"
function stringify(path: url): string {