quickshell: cache:false on wallpaper images (stale after soft reload)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
rope 2026-07-27 12:59:16 +01:00
parent f98387c2a3
commit 34234ab9e9

View file

@ -262,6 +262,10 @@ in
id: wall id: wall
anchors.fill: parent anchors.fill: parent
source: "file://" + Quickshell.env("HOME") + "/.local/share/backgrounds/wallpaper.png" source: "file://" + Quickshell.env("HOME") + "/.local/share/backgrounds/wallpaper.png"
// cache:false soft reload (qs ipc reload) keeps the process
// alive, and the QML pixmap cache is keyed by URL, so a new
// wallpaper behind the same path never shows without this.
cache: false
fillMode: Image.PreserveAspectCrop fillMode: Image.PreserveAspectCrop
visible: false visible: false
} }
@ -539,6 +543,7 @@ in
Image { Image {
anchors.fill: parent anchors.fill: parent
source: "file://" + Quickshell.env("HOME") + "/.local/share/backgrounds/wallpaper.png" source: "file://" + Quickshell.env("HOME") + "/.local/share/backgrounds/wallpaper.png"
cache: false // same-URL pixmap cache survives soft reload
fillMode: Image.PreserveAspectCrop fillMode: Image.PreserveAspectCrop
} }
} }