From 8915808414da02e11ef7cb894e6a710ebdd7dc56 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Sat, 28 Jun 2025 19:05:42 +1000 Subject: config: allow resolving paths from home --- services/Wallpapers.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'services') diff --git a/services/Wallpapers.qml b/services/Wallpapers.qml index eea4cb4..5a84d8d 100644 --- a/services/Wallpapers.qml +++ b/services/Wallpapers.qml @@ -97,7 +97,7 @@ Singleton { id: getWallsProc running: true - command: ["find", Config.paths.wallpaperDir, "-type", "d", "-path", '*/.*', "-prune", "-o", "-not", "-name", '.*', "-type", "f", "-print"] + command: ["find", Paths.expandTilde(Config.paths.wallpaperDir), "-type", "d", "-path", '*/.*', "-prune", "-o", "-not", "-name", '.*', "-type", "f", "-print"] stdout: StdioCollector { onStreamFinished: wallpapers.model = text.trim().split("\n").filter(w => root.extensions.includes(w.slice(w.lastIndexOf(".") + 1))).sort() } @@ -107,7 +107,7 @@ Singleton { id: watchWallsProc running: true - command: ["inotifywait", "-r", "-e", "close_write,moved_to,create", "-m", Config.paths.wallpaperDir] + command: ["inotifywait", "-r", "-e", "close_write,moved_to,create", "-m", Paths.expandTilde(Config.paths.wallpaperDir)] stdout: SplitParser { onRead: data => { if (root.extensions.includes(data.slice(data.lastIndexOf(".") + 1))) -- cgit v1.2.3-freya