summaryrefslogtreecommitdiff
path: root/services/Wallpapers.qml
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-05-04 14:19:38 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-05-04 14:19:38 +1000
commit9c4821b4b4c298eeaec6c108f435de4cb5fefc16 (patch)
treeacbba6cff7c1550e60db3c6a15ad3f54e8f36979 /services/Wallpapers.qml
parentfeat: launcher wallpaper selector (diff)
downloadcaelestia-shell-9c4821b4b4c298eeaec6c108f435de4cb5fefc16.tar.gz
caelestia-shell-9c4821b4b4c298eeaec6c108f435de4cb5fefc16.tar.bz2
caelestia-shell-9c4821b4b4c298eeaec6c108f435de4cb5fefc16.zip
feat: cache wallpapers
Reduces wallpaper load time massively
Diffstat (limited to 'services/Wallpapers.qml')
-rw-r--r--services/Wallpapers.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/services/Wallpapers.qml b/services/Wallpapers.qml
index 833e808..bd6528d 100644
--- a/services/Wallpapers.qml
+++ b/services/Wallpapers.qml
@@ -9,7 +9,7 @@ import Qt.labs.platform
Singleton {
id: root
- readonly property string path: `${StandardPaths.standardLocations(StandardPaths.PicturesLocation)[0]}/Wallpapers`
+ readonly property string path: `${StandardPaths.standardLocations(StandardPaths.PicturesLocation)[0]}/Wallpapers`.slice(7)
property list<Wallpaper> list
@@ -28,7 +28,7 @@ Singleton {
Process {
running: true
- command: ["fd", ".", root.path.slice(7), "-t", "f", "-e", "jpg", "-e", "jpeg", "-e", "png", "-e", "svg"]
+ command: ["fd", ".", root.path, "-t", "f", "-e", "jpg", "-e", "jpeg", "-e", "png", "-e", "svg"]
stdout: SplitParser {
splitMarker: ""
onRead: data => {