"Launching Omasnap…" OSD always shows for 15 s: launch feedback waits for a toplevel, Omasnap opens a layer surface
System details
Intel Core Ultra X7 358H, Intel Arc B390 (Panther Lake), Omarchy 4.5.0, Hyprland 0.56.2, omasnap 1.24.0
What's wrong?
Starting Omasnap from the app launcher always shows the "Launching Omasnap…" OSD, and it stays up for the full 15 s even though Omasnap's capture overlay is already on screen.
Steps
- Open the app launcher (Apps) and start Omasnap.
- The capture overlay appears at once.
- About 2 s later "Launching Omasnap…" appears and stays until the 15 s
launchTimeout.
Starting it with omarchy-capture-screenshot (Super+Ctrl+Alt+C) shows no OSD, since that path doesn't go through AppLibrary.
Why (from shell/services/AppLibrary.qml)
Launch feedback ends only when a new toplevel appears or the active toplevel changes:
if (root.toplevelCount() > root.launchToplevelCount || ToplevelManager.activeToplevel !== root.launchActiveToplevel) return
Omasnap's capture overlay is a layer-shell surface (LayerShellQt), not a toplevel, so neither condition ever becomes true: launchDelay shows the OSD at 2 s and only launchTimeout closes it at 15 s. The same would happen for any app whose first surface is a layer surface.
This is not the "OSD never closes" case in #12123 / #13973 / #13264; here it closes at 15 s, but it should never have been shown.
Expected
No launch OSD for Omasnap, or it closes as soon as the overlay is up.
Possible fixes
- Let a desktop entry opt out of launch feedback (e.g. an
X-Omarchy-LaunchFeedback=falsekey onomasnap.desktop), or skip feedback for entries known to open an overlay. - Or end feedback on a signal that doesn't depend on a toplevel, such as the app completing XDG activation / startup notification.
I read the report and checked the launch-feedback conditions in shell/services/AppLibrary.qml. GPT-6 High in Codex provisionally classified this as a bug, but the second classifier, deepseek-v4p1-flash, returned no usable classification, so classification remains unsettled. I have not reproduced the symptom or run tests, and no fix or labels were applied. This is waiting for classification review.
Reproduced on a disposable ISO worker running current quattro (fee089f164): at four seconds, Omasnap’s picker was visible while the launch banner remained open. AppLibrary waits for a normal toplevel window; Omasnap’s picker maps a layer surface instead.
The existing fix in #17787 dismisses feedback on its head (faf470b9e69a41330571a54ffe40aa5d52f2158a) and when combined with the current base. Reverting only its AppLibrary.qml fix brought the banner back. The real-layer regression passed on that head and failed with the fix reverted; a normal Foot launch still completed feedback. No full suite was rerun in this issue session.
GPT-6 High in Codex checked this with Opus 5.5 High and muse-wonder via pi, thinking high; review independence is not guaranteed. Opus identified a test integration defect, which I reproduced: combined with the current base, #17787’s fixture times out because it does not provide the shell object now required for OSD calls. That test needs updating as part of the existing PR’s follow-up. #17787 already links this issue; this remains waiting on maintainer review of that fix.
Before, on the current base: picker open with the launch banner still visible.
After combining the current base with #17787: picker open with launch feedback dismissed. These captures establish feedback behavior, not screenshot output.