From 9659130fdbf33b3428e3b5753f447ec61993e01c Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Sat, 30 Aug 2025 22:30:34 +1000 Subject: wallpapers: use CAELESTIA_WALLPAPERS_DIR env Env var overrides config option --- services/Wallpapers.qml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'services') diff --git a/services/Wallpapers.qml b/services/Wallpapers.qml index 7cfe7cb..30d7b0e 100644 --- a/services/Wallpapers.qml +++ b/services/Wallpapers.qml @@ -87,7 +87,7 @@ Searcher { id: getWallsProc running: true - command: ["find", "-L", Paths.expandTilde(Config.paths.wallpaperDir), "-type", "d", "-path", '*/.*', "-prune", "-o", "-not", "-name", '.*', "-type", "f", "-print"] + command: ["find", "-L", Paths.expandTilde(Paths.wallsdir), "-type", "d", "-path", '*/.*', "-prune", "-o", "-not", "-name", '.*', "-type", "f", "-print"] stdout: StdioCollector { onStreamFinished: wallpapers.model = text.trim().split("\n").filter(w => Images.isValidImageByName(w)).sort() } @@ -97,7 +97,7 @@ Searcher { id: watchWallsProc running: true - command: ["inotifywait", "-r", "-e", "close_write,moved_to,create", "-m", Paths.expandTilde(Config.paths.wallpaperDir)] + command: ["inotifywait", "-r", "-e", "close_write,moved_to,create", "-m", Paths.expandTilde(Paths.wallsdir)] stdout: SplitParser { onRead: data => { if (Images.isValidImageByName(data)) @@ -125,6 +125,6 @@ Searcher { component Wallpaper: QtObject { required property string modelData readonly property string path: modelData - readonly property string name: path.slice(Paths.expandTilde(Config.paths.wallpaperDir).length + 1, path.lastIndexOf(".")) + readonly property string name: path.slice(Paths.expandTilde(Paths.wallsdir).length + 1, path.lastIndexOf(".")) } } -- cgit v1.2.3-freya