perf: cache blurred wallpaper to disk to avoid re-blur on startup

First launch with blur blurs and saves to ~/.cache/moonlock/.
Subsequent starts load the cached PNG directly. Cache invalidates
when wallpaper path, size, mtime, or sigma changes.
Adds dirs crate for cache directory resolution.
This commit is contained in:
2026-03-28 21:23:43 +01:00
parent de9a3e9e6a
commit 48706e5a29
3 changed files with 255 additions and 3 deletions
+1
View File
@@ -14,6 +14,7 @@ gdk-pixbuf = "0.22"
gio = "0.22"
toml = "0.8"
serde = { version = "1", features = ["derive"] }
dirs = "6"
nix = { version = "0.29", features = ["user"] }
zeroize = { version = "1", features = ["derive"] }
libc = "0.2"