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, an Arch Linux-based distribution using Hyprland, shipped this weekend with Linux 7.2 and Qt 6.12. The standout change is a micro-optimization to default browser discovery: a new helper, omarchy-cmd-default-browser, bypasses the POSIX shell overhead of xdg-settings to read mimeapps.list directly. The project also improved shell bar performance on multi-monitor setups.
How the browser launch optimization works
- xdg-settings bottleneck: The standard
xdg-settings get default-web-browsercall was taking ~72 ms due to layered POSIX shell scripts - Replacement helper:
omarchy-cmd-default-browserreadsmimeapps.listdirectly from config directories, checkinghyprland-mimeapps.listfirst - Fallback chain: If no config-dir entry exists, falls back to
xdg-settings, thenBROWSERenv var, thenxdg-mimefor https - Stale entry handling: Skips entries whose
Execcommand no longer resolves, even if a system copy of the same entry exists - Bar optimization: Separate improvement reduced shell bar load time from ~20 s to ~15 s on a six-monitor setup with many widgets
Why it matters
The optimization highlights how desktop-agnostic XDG utilities can become performance bottlenecks for specialized distributions; Omarchy's approach of reading mimeapps.list directly may be worth watching for other Hyprland-focused projects.
Original reference: www.phoronix.com →