Repository navigation
Conversation
There was a problem hiding this comment.
Pull request overview
Adds fallback focusing for single-instance apps whose relaunch produces no visible window activity.
Changes:
- Matches existing windows by desktop ID or
StartupWMClass. - Activates a remembered window after the two-second delay.
- Adds matching and source-structure tests.
Tip
If you aren't ready for review, convert to a draft PR.
Click "Convert to draft" or run gh pr ready --undo.
Click "Ready for review" or run gh pr ready to reengage.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
shell/services/AppSearch.js |
Adds app-ID matching helpers. |
shell/services/AppLibrary.qml |
Implements existing-window focus fallback. |
test/shell.d/app-search-test.sh |
Tests matching and fallback structure. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
On my laptop this conflicts with quattro only in two hunks of |
Why
Relaunching an already-running single-instance app such as Telegram or Aether can succeed without creating a new window or activating the existing one. Omarchy currently interprets the lack of window activity as an app still starting, so it displays a misleading
Launching…OSD until the timeout.Before
screenrecording-2026-08-27_21-27-36.mp4
After
screenrecording-2026-08-27_21-24-41.mp4
Summary
Launching…OSDStartupWMClassas a fallbackThis preserves normal multi-window behavior because Omarchy still launches the desktop entry first. The focus fallback only runs when that launch has no visible effect, as happens when relaunching single-instance apps such as Telegram and Aether.
Testing
bash test/shell.d/app-search-test.shqmllint -I shell shell/services/AppLibrary.qmlgit diff --check./test/all(unrelated environment failures: three packaging-coverage tests require anomarchy-pkgscheckout;launch-about-test.shreports its existinga roomy window animatesfailure on this machine)