Linux Kernel & OS

Omarchy 4.0.5 cuts browser launch time by 86% with custom XDG replacement

Key Takeaway

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/http defaults from mimeapps.list files in config directories, checking hyprland-mimeapps.list first
  • Validates that the .desktop entry's Exec command still resolves; skips stale entries left by removed browsers
  • Falls back to xdg-settings, then BROWSER env var, then xdg-mime for https if no config-dir entry exists
  • omarchy-launch-browser and omarchy-launch-webapp now 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 →