Repository navigation
Conversation
notify-send -i puts a themed icon name in the image-path hint. The card fed that string straight to Image.source, so missing names painted Qt's placeholder. Route image through the same iconSource check as appIcon. Fixes #9920 Signed-off-by: fresh3nough <anonwurcod@proton.me>
|
This fixes the bare-name path but still leaves the Chromium/Vivaldi trigger showing the magenta placeholder. Verified on Omarchy When Vivaldi delivers a Proton Mail notification, it sends an Repro: The existing guard can be made to work by resolve-checking function iconSource(icon) {
var value = String(icon || "")
if (value.length === 0) return ""
if (value.indexOf("file://") === 0) return value
if (value.indexOf("image://icon/") === 0) {
// Query forms (path/fallback) keep their provider handling.
if (value.indexOf("?") !== -1) return value
return Quickshell.iconPath(value.slice("image://icon/".length), true)
}
if (value.indexOf("image://") === 0) return value
if (value.charAt(0) === "/") return Util.fileUrl(value)
return Quickshell.iconPath(value, true)
}
|
|
Note: this also covers #9920 (the issue this PR targets) — same root defect, a themed icon name arriving via the |
Quickshell 0.3 turns an image-path hint that is not a file: URI into image://icon/<name> before the card sees it, so routing image through iconSource alone passed it straight to Image.source and a missing name still painted the placeholder (#9920). Resolve those names with Quickshell.iconPath's check, leaving absolute paths and provider queries as they were. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Quickshell passes any image-path starting with file: through untouched, and the card used to hand it straight to Image.source. Now that image goes through iconSource, file:/tmp/avatar.png fell through to the theme lookup and was hidden, so treat every file:/ URI as a URL to load. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-Authored-By: Codex Medium <noreply@openai.com>
|
Reviewed, reproduced on an Omarchy worker (Quickshell 0.3.1), and fixed on this branch with two commits on top of yours. Routing What changed:
On the worker at f97ac50: the missing name draws no placeholder and the slot is hidden, a This also fixes #7558, which has the same steps and cause, so it is now linked. #6507 rewrites the same Waiting on the maintainer: CI has not run on this fork's pull request yet, and the order with #6507 is theirs to choose. |
|
|
Thanks @fresh3nough! The new engine pulls a bare |
Summary
NotificationCardpreferredimageoverappIconbut only ranappIconthroughiconSource(). Specimage-pathmay be a themed icon name (notify-send -i); a bare name was treated as a relative URL and Qt painted the magenta missing-texture placeholder.Fix
Missing themed names become
""and the existing slot visibility guard hides the icon.Fixes #9920
Test plan
imageternary on quattrobash test/shell.d/notifications-test.sh— prior cases plus image-path routed throughiconSourceFixes #7558