Omarchy 4.0.5 cuts browser launch time by 86% with custom XDG replacement
Omarchy 4.0.5 replaces xdg-settings with a custom helper that finds the default browser in ~10 ms instead of ~72 ms.
Summary
Omarchy 4.0.5 shipped this weekend with Linux 7.2, BORE scheduler, and Qt 6.12. The standout change is a micro-optimization to default browser discovery: a new omarchy-cmd-default-browser helper reads mimeapps.list directly, bypassing the POSIX shell overhead of xdg-settings. The project also improved bar performance for multi-monitor setups.
How the browser launch optimization works
- omarchy-cmd-default-browser is a new hidden helper written in compiled code, replacing the shell-based
xdg-settings get default-web-browser - Reads
x-scheme-handler/httpdefaults frommimeapps.listfiles in config directories, checkinghyprland-mimeapps.listfirst - Validates that the
.desktopentry'sExeccommand still resolves; skips stale entries left by removed browsers - Falls back to
xdg-settings, thenBROWSERenv var, thenxdg-mimeforhttpsif no config-dir entry exists omarchy-launch-browserandomarchy-launch-webappnow use the new helper- Separate bar optimization reduced startup from ~20 s to ~15 s on a six-monitor setup with many widgets
Why it matters
The optimization is distribution-specific, but it highlights a broader pain point: XDG utilities' shell-script overhead adds measurable latency to common desktop operations. Other performance-focused distributions or compositors may adopt similar approaches.
Original reference: www.phoronix.com →