omarchy icon indicating copy to clipboard operation
omarchy copied to clipboard

Quickshell SIGSEGV in QIcon::pixmap → QPlatformPixmap::fromFile on QQuickPixmapReader thread when tray items register at login

Open rlf3iii opened this issue 1 month ago • 12 comments

What happened

The Omarchy shell (Quickshell) segfaulted about 18 s after login on two consecutive boots. The backtraces are identical, and in both the crash is on the QQuickPixmapReader thread while it loads a tray icon. Quickshell's crash handler relaunched the shell both times, so the visible effect is a bar flicker and a crash notification.

Boot 1 Boot 2
Crash time 2026-10-20 15:13:34 CDT 2026-10-21 07:37:48 CDT
Login time 15:13:16 07:37:31
Synology Drive tray (cloud-drive-ui) started 15:13:33.8 07:37:47

A boot on 2026-10-18 with the same Quickshell build and the same autostart apps did not crash, so the crash is intermittent.

Expected

Tray items registering at login should not crash the shell.

Backtrace (crashing thread; identical offsets in both cores)

#0  libc.so.6 + 0x9a11c
#1  raise (libc.so.6)
#2  quickshell + 0x127089            <- Quickshell crash handler
#3  <signal handler called>
#4  QPlatformPixmap::fromFile(QString const&, char const*, QFlags<Qt::ImageConversionFlag>)  (libQt6Gui + 0x191cdf)
#5  QPixmap::load(QString const&, char const*, QFlags<Qt::ImageConversionFlag>)
#6-8 libQt6Gui (QIconLoader / icon engine internals, unsymbolized)
#9  QIcon::pixmap(QSize const&, double, QIcon::Mode, QIcon::State) const
#10 QIcon::pixmap(QSize const&, QIcon::Mode, QIcon::State) const
#11 quickshell + 0x31fd9a            <- Quickshell image provider (image://icon)
#12-13 libQt6Quick + 0x3d47b3 / 0x3d5b15   (QQuickPixmapReader)
#14 QCoreApplication::notifyInternal2
...
#22 QThread::exec
#23 libQt6Quick + 0x3d5bbd   (QQuickPixmapReader thread)

I couldn't symbolize the Quickshell frames: gdb hung downloading debuginfod symbols for the full core.

Context

  • Tray items at login: NordVPN (nordvpn-tray-white), 1Password, Dropbox (dropboxstatus-idle, ayatana), Synology Drive cloud-drive-ui (empty IconName, 22x22 IconPixmap, AttentionIconName = dialog-information).
  • Directly after each crash the SNI host logs Error reading "RegisteredStatusNotifierItems" property of watcher org.kde.StatusNotifierWatcher ... "Remote peer disconnected", which is expected because the watcher lived in the process that died.
  • plugins/bar/widgets/Tray.qml (TrayIcon) passes modelData.icon (an image://icon/... URL) to a plain Image with sourceSize set.
  • Not OOM: 23 GiB of memory was free and there was no OOM kill.

Likely mechanism (inference, not proven)

The image://icon provider is invoked on the QQuickPixmapReader worker thread and calls QIcon::pixmap(). That builds a QPixmap (and touches the shared QIconLoader cache) off the GUI thread, which Qt doesn't support. When several tray items register at once during login, this races with GUI-thread icon use. Building a QImage in the provider, or making it synchronous or GUI-thread only, would avoid it.

System

  • Omarchy: 4.0.0.r7210.g087f73d-1 (dev channel)
  • quickshell: 0.3.2.r7.g2b4501a-1 (omarchy repo; installed 2026-10-18, replacing 0.3.2-6)
  • qt6-base 6.12.0-3, qt6-declarative 6.12.0-2
  • Hyprland 0.56.2
  • Kernel 7.2.8-10-omarchy
  • Hardware: ASUS Vivobook S16, Intel Arrow Lake-P (Arc 130T/140T)
  • omarchy debug isn't available in this build (Unknown Omarchy command), so these details were collected by hand.

Filed by Claude Opus 5.5 via Claude Code.

rlf3iii avatar Oct 21 '26 13:10 rlf3iii

Thanks for the detailed report and backtrace. A fix is up as #16400.

Your reading of the mechanism holds in the source. Quickshell's image://icon provider, and the image://qspixmap provider behind tray icons, call QIcon::fromTheme and QIcon::pixmap. Qt runs those providers on the QQuickPixmapReader thread whenever an Image is asynchronous. QIcon's theme cache is global and unlocked, and the GUI thread uses it at the same time for tray icons and icon lookups. In the shell, the dock, app menu, toasts and media art had asynchronous Images that can load image://icon/ URLs. The dock and toasts load at login, while tray items are registering. #16400 loads those two providers on the GUI thread and keeps file URLs asynchronous. Building a QImage in the provider, as you suggested, would not be enough on its own: the provider would still call QIcon on the loader thread.

What was checked: the Qt 6.12 pixmap cache and Quickshell 0.3.2.r7.g2b4501a provider source, every asynchronous Image in shell/, and the shell test suite on a disposable Omarchy worker, which fails the same files with the fix as on quattro. The crash itself was not reproduced. A stress shell loading 48 asynchronous image://icon Images against GUI-thread icon lookups ran three times for 60 seconds on a worker without crashing. So the race is established in the source but not caught in the act.

Codex Medium and Muse Spark 1.3 (high) reviewed this independently. Both agreed that the off-thread QIcon path is real and that its link to your crash is strongly plausible rather than proven. Both suggested also covering the tray's image://qspixmap provider, which #16400 does.

#16400 is now waiting on the maintainer. If you can run its head and still see a crash with the same backtrace, a comment there would settle it.

omarchybot avatar Oct 23 '26 13:10 omarchybot

Same crash, same build (0.3.2.r7.g2b4501a, identical offsets), different trigger: mid-session (uptime ~2 days), ~4 s after launching an app from the menu triggered a desktop-entry/icon rescan, no tray registration involved.

Symbolized the Qt frames with Arch debuginfod (qt6-base 6.12.0-3):

#4 QPlatformPixmap::fromFile            qplatformpixmap.cpp:104
#5 QPixmap::load                        qpixmap.cpp:725
#6 PixmapEntry::pixmap (size 128x128, scale 2)  qiconloader.cpp:940
#7 QIconLoaderEngine::scaledPixmap      qiconloader.cpp:1004
#8 QProxyIconEngine::scaledPixmap       qiconengine.cpp:374
#9 QIcon::pixmap                        qicon.cpp:948

The PixmapEntry being read in frame 6 is already corrupted in the core: _vptr = 0x7fbda980a380 (a heap address, not a vtable), filename QString has d≠0 but ptr=0/size=0, dir.path.size = 140453127208544, basePixmap._vptr = 0x200000001. So the icon-loader entry was freed/overwritten while the loader thread used it, consistent with the unsynchronized QIconLoader race #16400 addresses.

Filed by Claude Opus 5.5 via Claude Code.

JohnAndrewsX avatar Oct 29 '26 08:10 JohnAndrewsX

@JohnAndrewsX thanks for the symbolized frames. They show the crash isn't tied to tray registration, and #16400 already covers the path your trigger takes.

A desktop-entry rescan replaces the app library's icon index (shell/services/AppLibrary.qml). Every dock and menu icon binding then re-evaluates, and an icon not indexed as a file falls back to Quickshell.iconPath(name, true). That call does QIcon::fromTheme on the GUI thread. On quattro the dock and menu icon Images are asynchronous, so their image://icon/ reloads run QIcon::pixmap on Qt's image loader thread at the same time. Your frames, from QIcon::pixmap down to PixmapEntry::pixmap loading the file, match that lazy theme-icon load. So does a PixmapEntry with an invalid vptr, which is consistent with the entry being changed under the loader thread. Tray registration at login is one source of the GUI-thread side of the race, and a rescan is another.

What was checked: #16400 at ed1c749f still merges cleanly into current quattro. No asynchronous Image or SizedImage has been added to shell/ since it was written. Every one on current quattro that can receive an image://icon/ or image://qspixmap/ URL (dock, menu, toasts, media art) loads on the GUI thread with the change. The rest take only file URLs. Codex Medium reviewed the new report against the Qt, Quickshell and shell source and reached the same reading. It found no asynchronous provider path that #16400 leaves open. It also noted that a corrupted entry shows memory corruption but not which concurrent operation caused it, so this remains strongly consistent rather than proven. The crash has still not been reproduced on a worker.

This waits on the maintainer's decision on #16400. If either of you runs its head and still gets this backtrace, a comment there would settle it.

omarchybot avatar Nov 02 '26 00:11 omarchybot

Update: the trigger is a desktop notification, and the crash is in the notification popup's icon load

I captured more detail on this crash. The trigger isn't tray icons registering together at login. It's a desktop notification from Synology Drive's client asking for a themed icon.

What Synology Drive sends at startup (D-Bus capture). The client uses its bundled Qt 5.12, whose QSystemTrayIcon::showMessage does this:

Notify("cloud-drive-ui", 0, "dialog-information", "Running",
       "Synology Drive Client is running.", [], {urgency: 0}, 5000)

At the same moment, its tray item switches to NeedsAttention with AttentionIconName "dialog-information".

Where it crashes (cores symbolized with Qt 6.12.0 debuginfo; quickshell has no debuginfo):

QQuickPixmapReader::processJob
 -> QIcon::pixmap -> QIconLoaderEngine::scaledPixmap
 -> PixmapEntry::pixmap (qiconloader.cpp:940)
 -> QPixmap::load -> QPlatformPixmap::fromFile (qplatformpixmap.cpp:104)  <- SIGSEGV
  • The file being loaded is /usr/share/icons/Yaru/256x256@2x/status/dialog-information.png at scale 2. The file is intact.
  • In two separate cores, the QPlatformPixmap object is already freed and reused: its vptr is 0 and its fields hold UTF-16 text ("Yaru…"). So this looks like a use-after-free, not a bad file or a null pointer.
  • The load runs on the pixmap reader thread. In plugins/notifications/Toast.qml (~line 348), the notification icon Image has asynchronous: true and a source from Quickshell.iconPath(name, true), which is an image://icon/... URL. The themed lookup therefore runs off the GUI thread, while the GUI thread is busy resolving other icons at login (tray, desktop entries).
  • Qt's icon loader isn't thread-safe, so I think that's the race. This part is inferred: I couldn't see the second thread in the core.

Why it's intermittent: it only crashes when the notification's icon load overlaps other icon lookups. A manual synology-drive restart sent the same notification without crashing.

Possible fix: load themed notification icons on the GUI thread. Either drop asynchronous when the source is an image://icon/ theme name, or resolve the theme name to a file path on the GUI thread first and load that file asynchronously. Any app that sends a themed icon name in Notify while the shell is starting up could trigger this, not just Synology Drive.

Workaround attempted: delaying Synology Drive's autostart by 10 s didn't help, since the notification still arrives while icons are loading.

Versions: quickshell 0.3.2.r7.g2b4501a-6, Qt 6.12.0-3, yaru-icon-theme 26.10.3-3, Synology Drive 4.2.1_20062. Crashes on 2026-10-20, 10-21, 10-30 and 11-02.

rlf3iii avatar Nov 02 '26 13:11 rlf3iii

Confirming the toast path from a different app on the 4.5.0 release channel (earlier reports here are from the dev channel). This is still reproducible in 4.5.0-3, and #16400's approach is exactly what stops it locally.

System: Omarchy 4.5.0-3, quickshell 0.3.2.r7.g2b4501a-1, qt6-base 6.12.0-3, qt6-declarative 6.12.0-2, Hyprland 0.56.2, kernel 7.2.15-1-omarchy, Intel Iris Xe (8086:9a49) + NVIDIA MX350 (10de:1f97).

Trigger: Telegram Desktop notifications. The notification archive is almost entirely org.telegram.desktop, so this fires many times a day.

Cores: three SIGSEGV cores on 2026-11-11 (01:09, 01:12, 12:46), all on the QQuickPixmapReader thread:

  • 2x QIcon::pixmap() -> QPixmap::load() -> QPlatformPixmap::fromFile(), with a quickshell frame between QIcon::pixmap and QQuickPixmapReader (the image://icon provider).
  • 1x QColorSpace::QColorSpace(QColorSpace const&) called from libQt6Quick — a plain-image decode on the same thread, looks like a separate variant.

Correlating evidence for the toast: the shell log immediately before the 01:09 crash ends with the desktop-entry rescan for org.telegram.desktop ("Found desktop entry" / "Replacing old entry"). That is what the toast icon fallback does in plugins/notifications/Toast.qml: Icons.candidates(row) -> DesktopEntries.heuristicLookup(name) -> Quickshell.iconPath(entry.icon, true), and the Image at Toast.qml:348 is asynchronous: true. No tray registration in the window (tray items were already up).

Workaround that stopped it: cloned omarchy.notifications and bound the toast image's async to the URL scheme, so only themed icons are synchronous:

asynchronous: thumb.best.indexOf("image://icon/") !== 0

plus asynchronous: false on two user plugins that load app icons the same way. After a shell restart and six Telegram-icon test notifications there were no crashes; before the change, crashes landed within minutes. That matches #16400 loading the image://icon provider on the GUI thread while keeping file URLs async.

Not sure #16400 covers the QColorSpace variant above, since that one has no QIcon frame, but the two QIcon cores match this issue exactly.

Filed with agent assistance (OpenCode).

sanzid-islam-mahi avatar Nov 11 '26 07:11 sanzid-islam-mahi

Another trigger for this crash: a tray item updating its icon mid-session, not registering at login. It may be repeatable on demand, which could help test #16400 since the crash hasn't been reproduced on a worker yet.

System: Omarchy 4.5.0-3, quickshell 0.3.2.r7.g2b4501a-1, qt6-base 6.12.0-3, qt6-declarative 6.12.0-2, Intel Iris Xe (8086:9a49).

Trigger: librepods 1.0.4-1, the AirPods tray app, when the AirPods disconnect. In one D-Bus burst it sets IconName to "", IconPixmap to two pixmaps (22x22 and 64x64), AttentionIconName to dialog-information, and ToolTip to "AirPods Disconnected" (with tooltip icon dialog-information). This is the same dialog-information themed name as in the Synology Drive report above.

Evidence: there are three SIGSEGV cores (2026-11-08, 11-09, 11-11), all on the QQuickPixmapReader thread. Each stack is quickshell+0x31fd9a -> QIcon::pixmap -> QPixmap::load -> QPlatformPixmap::fromFile, with the same offsets as this issue. One core dies a little deeper, in QImage::~QImage under QRasterPlatformPixmap::createPixmapForImage / fromImage called from fromFile, which fits memory corruption. In all three, Quickshell's saved crash log ends with that librepods SNI property burst. For the 11-11 crash, the journal also has librepods logging Device disconnected in the same second as the crash. Tray items were already registered long before, so this happened mid-session, not at login.

Limits: the quickshell frames aren't symbolized. I only have one boot's journal, so I can't say how often a disconnect doesn't crash. The one disconnect logged this boot did crash.

Filed by Claude Opus 5.5 via Claude Code.

mscott99 avatar Nov 11 '26 19:11 mscott99

A follow-up to my librepods report above. This crash can also take down the lock screen.

On 2026-11-12 at 07:13:09, a fourth crash hit right after resume from suspend, while the session was locked. It had the same stack and offsets (quickshell+0x31fd9a -> QIcon::pixmap -> QPixmap::load -> QPlatformPixmap::fromFile on QQuickPixmapReader) and the same librepods "AirPods Disconnected" SNI burst. The lock screen runs inside the shell process, so it went down too. The journal shows omarchy lock ... fingerprint-resume from omarchy-shell in the same second as the crash, then omarchy-sleep-lock.service restarting ("restart counter is at 1"). The session stayed locked, and the lock came back once the shell restarted.

Resume makes this more likely to hit while locked, because Bluetooth devices drop and reconnect at wake and tray apps update their icons then. That may be worth weighing for #16400.

Filed by Claude Opus 5.5 via Claude Code.

mscott99 avatar Nov 12 '26 14:11 mscott99

The notification reports match the current toast icon path: it resolves theme names to image://icon/ URLs and loads them asynchronously. The tray's own icon Images are synchronous, so a librepods property burst alone does not identify the Image that started the reader-thread request. @mscott99, was there also a desktop notification at the disconnect? Notification history or a captured Notify call would help distinguish that.

#16400 now conflicts with the current dock, which has separate current/previous icon Images. Draft #18930 adapts the same policy to both; its diff applies to current quattro. Neither proposal has been shown to stop this intermittent crash, and third-party plugins can still make their own asynchronous provider requests. This remains with the maintainer to decide how to carry the fix forward.

The lock UI lives in the shell process, consistent with it disappearing during the crash; your report says the session stayed locked. The sleep monitor normally exits after handling a sleep event and systemd restarts it, so its restart counter alone does not show another crash-induced failure.

Checked current quattro at 419a5a7095d118a218d5f84548dbd83ce90067e6, both proposal diffs and the new reports by reading source; no new worker reproduction or tests ran. Opus 5.5 High and muse-wonder via pi, thinking high, reviewed the same material and agreed that the suspected icon race remains unproven; their independence from this review is not guaranteed.

A symbolized backtrace of all threads from one crash would help establish the concurrent operation. @sanzid-islam-mahi, the QColorSpace case needs its full stack and image URL before it can be attributed to this themed-icon path. If testing either proposal, please include the full tested commit SHA.

omarchybot avatar Nov 18 '26 05:11 omarchybot

Following up on the QColorSpace core from my 2026-11-11 comment (PID 3711, 12:46:38, 4.5.0-3 with the stock shell config).

Full stack, as saved by the crash handler

#0  0x00007f8388a3e6ef at /usr/bin/../lib/libc.so.6
#1  0x00007f838a48720f in QColorSpace::QColorSpace(QColorSpace const&) at /usr/bin/../lib/libQt6Gui.so.6
#2  0x00007f838afcec6a at /usr/bin/../lib/libQt6Quick.so.6
#3  0x00007f838afd40ea at /usr/bin/../lib/libQt6Quick.so.6
#4  0x00007f838afd5b14 at /usr/bin/../lib/libQt6Quick.so.6
#5  0x00007f83893891d7 in QCoreApplication::notifyInternal2(QObject*, QEvent*) at /usr/bin/../lib/libQt6Core.so.6
#6  0x00007f838938a36e in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) at /usr/bin/../lib/libQt6Core.so.6
#7  0x00007f83896c66b7 at /usr/bin/../lib/libQt6Core.so.6
#8  0x00007f838bc2975d at /usr/bin/../lib/libglib-2.0.so.0
#9  0x00007f838bc32c4f at /usr/bin/../lib/libglib-2.0.so.0
#10 0x00007f838bc32db4 in g_main_context_iteration at /usr/bin/../lib/libglib-2.0.so.0
#11 0x00007f83896c4d21 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) at /usr/bin/../lib/libQt6Core.so.6
#12 0x00007f8389396a73 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) at /usr/bin/../lib/libQt6Core.so.6
#13 0x00007f83894c4a01 in QThread::exec() at /usr/bin/../lib/libQt6Core.so.6
#14 0x00007f838afd5bbc at /usr/bin/../lib/libQt6Quick.so.6
#15 0x00007f8389578fda at /usr/bin/../lib/libQt6Core.so.6
#16 0x00007f8388a98041 at /usr/bin/../lib/libc.so.6
#17 0x00007f8388b2072b at /usr/bin/../lib/libc.so.6

There is no all-thread backtrace to add: the saved core has a single LWP (gdb: one thread, LWP 3711), the reader thread that crashed. The GUI thread is not in the image.

The unsymbolized frames. Installed qt6-declarative is 6.12.0-2 and extra-debug only has 6.12.0-4, so these are identified by disassembling the installed libQt6Quick.so.6.12.0 (the saved addresses are return addresses minus one):

  • #1 libQt6Gui+0x28720f is the faulting instruction, lock addl $0x1,(%rax) after loading the source's d_ptr; %rax is 0xffffffff.
  • #2 libQt6Quick+0x3cec6a: in readImage(), the call at +0x3cec65 is QColorSpace::QColorSpace(QColorSpace const&) with providerOptions.d->targetColorSpace as the source (qpc.cpp:536), followed by isValid() at +0x3cec6f.
  • #3 +0x3d40ea: QQuickPixmapReader::processJob, from its readImage() call at +0x3d40e6.
  • #4 +0x3d5b14: ReaderThreadExecutionEnforcer::event handling ProcessJobs, from its processJobs() call at +0x3d5b10.
  • #14 +0x3d5bbc: QQuickPixmapReader::run, from its QThread::exec() call at +0x3d5bb7.

So this is the reader thread, inside readImage(), on the success branch after imgio.read(image) returned true, in the targetColorSpace() block. No QIcon, QPixmap or QtSvg frames.

Image URL: file:///usr/share/icons/hicolor/scalable/apps/firefox.svg

Recovered from the core: the same QUrlPrivate (0x7f836ecf62c0) is in the QQuickPixmapData (+24) and in the requesting QQuickImage's private (+0x188). The request has:

  • requestSize 90×90 (+80) and devicePixelRatio 1.25 (+88), i.e. a QML sourceSize of 72×72;
  • asynchronous (that is why it is on the reader thread);
  • a plain file:// URL, not image://icon/, resolved by AppLibrary.iconSource;
  • preserveAspectRatioFit = true, preserveAspectRatioCrop = false, which is what Image.PreserveAspectFit sets (qquickimage.cpp:361).

That combination matches the dock's app-icon Image (plugins/dock/DockWindow.qml:503): iconSize = Math.round(36 * Style.fontScale) = 36, sourceSize 72×72, ×1.25 monitor scale = 90×90, fillMode: PreserveAspectFit, asynchronous: true. The saved log ends at openwindow>>55f734dab810,1,firefox,Mozilla Firefox with that toplevel activating, i.e. the moment a dock slot for Firefox appears. I cannot prove the item identity from the core (no QML file names survive there), but I found no other 72×72 asynchronous icon request.

What actually faults. The options object is shared (refcount 4) and was handed to the reader thread by the requesting Image. In the core, its QColorSpace slot holds 0x00000000ffffffff where a valid QColorSpacePrivate* or a null would be, so the copy constructor increments a refcount at address 0xffffffff. That is corruption of a live Qt Quick options object, not an SVG or themed-icon lookup failure. One core cannot tell me whether it was a stray write or a lifetime problem.

For the two proposals. This request never enters the image://icon provider: it is a themed icon resolved to a plain file URL and loaded asynchronously. A policy of asynchronous: thumb.best.indexOf("image://icon/") !== 0 (#16400) or its #18930 adaptation leaves this request on the reader thread, so neither changes this path. The two QIcon cores I posted earlier are the provider path and are covered by that policy; this one is not.

No proposal was tested for this comment, so there is no commit SHA to report; this is core analysis only. Filed with agent assistance (OpenCode).

sanzid-islam-mahi avatar Nov 18 '26 07:11 sanzid-islam-mahi

That supplies the missing stack and image URL. In Qt 6.12’s local-file reader, the target-color-space check happens after image decoding succeeds. Your disassembly is consistent with that path. The recovered URL is a plain file URL, so this request bypasses the themed-icon provider. The request size is consistent with the dock, but does not establish the QML item’s identity.

Both #16400 and #18930 leave file images asynchronous, so they leave this request’s loading policy unchanged. That does not establish a separate root cause or exclude earlier memory corruption from another image load. The corrupting operation remains unknown; neither proposal has been validated by this new report. #16400 still conflicts, and #18930 remains draft, so carrying the existing fix forward still needs the maintainer’s decision.

There are no additional threads to recover from that single-LWP core. If this recurs, matching Qt/Quickshell build IDs and symbolized stacks of all threads from the new crash would help investigate the corruption; if running a proposal, include its full tested commit SHA.

GPT-6 High in Codex, Opus 5.5 High and muse-wonder via pi, thinking high, checked this. The second opinions agreed on the scope and unresolved cause; independence from this review is not guaranteed. This was a source review of current quattro at 419a5a7095d118a218d5f84548dbd83ce90067e6, Qt 6.12 and both proposal diffs. No new worker reproduction or tests ran.

omarchybot avatar Nov 18 '26 07:11 omarchybot

Related, from the Synology Drive side of this (its startup notification is one of the triggers above): Synology Drive's bundled Qt 5.12 sends every notification with app_name cloud-drive-ui and app_icon dialog-information.

Because Icons.candidates() puts the sender's app_icon first, the toast always draws the generic stock info icon (and loads it through image://icon/), never the app's own icon -- even when a theme-coloured synology-drive icon is installed and the launcher shows it.

Suggestion: when app_icon is a generic freedesktop status icon (dialog-information, dialog-warning, dialog-error, dialog-question), try the app's own names (app / source / desktop entry) first and keep the stock icon as the fallback. Apps that send a stock icon would then wear their own icon, and for this sender the toast would stop requesting dialog-information from the icon provider at all.

(For Synology to match by name, its desktop entry also needs StartupWMClass=cloud-drive-ui, which I can add in the synology-drive package, omacom/omarchy-pkgs#1971.)

Not tested as a patch; based on reading plugins/notifications/Icons.js and Toast.qml on Omarchy 4.0.0.r8313 and the notification history.

Filed by Claude Opus 5.5 via Claude Code.

rlf3iii avatar Nov 25 '26 13:11 rlf3iii

The current lookup order explains the generic icon: Icons.candidates() puts the sender’s app_icon first, and Toast.qml places a themed hit ahead of the desktop-entry icon. Even if a StartupWMClass change makes the desktop entry match, a successfully loaded dialog-information still wins. Moving that name to the end of the themed list also leaves it ahead of the desktop-entry fallback. Store.js does not retain the desktop-entry hint separately when app_icon is present.

Choosing an app icon would not necessarily avoid the suspect provider: Quickshell.iconPath() also returns image://icon/ for a resolved app theme name. An icon resolved to a file path takes a different loading path, but the proposed ordering has not been tested against these crashes. The earlier notification capture remains relevant; this new suggestion supplies no crash reproduction or validation of either existing proposal.

Giving app identity priority over a supplied status icon would change the documented icon policy, so that choice remains with the maintainer. The crash issue remains open: #16400 still conflicts, and #18930 remains draft. No new fix was opened.

GPT-6 High in Codex checked the current source at d4512a7559f7d96711fedeb1f4c4fd368b51de22, the reporter’s Quickshell build and both proposal diffs. Opus 5.5 High and muse-wonder via pi, thinking high, agreed on the lookup behavior and the limits of the proposed ordering; independence from this review is not guaranteed. No new worker reproduction or tests ran.

omarchybot avatar Nov 25 '26 18:11 omarchybot