omarchy icon indicating copy to clipboard operation
omarchy copied to clipboard

File Manager is not a Defaults category (hardcoded to Nautilus, ignores xdg-mime)

Open mrocha-montes opened this issue 2 months ago • 2 comments

Browser, Terminal, Editor and Agent all have a proper category under Setup > Defaults: a menu entry, a dynamic launcher script that resolves the current choice, and an omarchy-default-<category> setter. File Manager does not.

omarchy-launch-nautilus (bound to SUPER+E by default) is hardcoded:

exec setsid uwsm-app -- nautilus --new-window

Compare with omarchy-launch-browser, which reads xdg-settings get default-web-browser, resolves the Exec= line from the matching .desktop file, and launches that. File managers already follow the equivalent freedesktop standard (xdg-mime query default inode/directory), so the same pattern would work with no new spec to invent.

Concretely: if I install Dolphin (or Thunar, Nemo, PCManFM...) and set it as my default via xdg-mime default org.kde.dolphin.desktop inode/directory, SUPER+E still opens Nautilus regardless. The keybind is wired to a specific app instead of "whatever the user's default file manager is."

Suggested fix, mirroring the existing browser pattern:

  • omarchy-launch-filemanager: resolve xdg-mime query default inode/directory, extract Exec=, launch it.
  • omarchy-default-filemanager <id>: wrapper around xdg-mime default <desktop-id> inode/directory, for a fixed list of common file managers (nautilus, dolphin, thunar, nemo, pcmanfm, etc).
  • setup.default.filemanager.* entries in omarchy-menu.jsonc, same shape as setup.default.browser.*.
  • Point the default SUPER+E binding at { omarchy = "filemanager" } instead of { omarchy = "nautilus" }.

Happy to submit a PR with this if it's a welcome direction.

mrocha-montes avatar Sep 06 '26 13:09 mrocha-montes

i have also similar type of problem whenever i want to install a new background it open in nautilus instead of flea file manager

saqib33www-collab avatar Oct 05 '26 14:10 saqib33www-collab

Still applies on Omarchy 4.5.0-3:

  • bin/omarchy-launch-nautilus is still exec setsid uwsm-app -- nautilus --new-window and ignores xdg-mime query default inode/directory.
  • The bindings moved to SUPER + SHIFT + F (File manager) and SUPER + ALT + SHIFT + F (File manager, cwd) in default/hypr/bindings/applications.lua. Both still go through { omarchy = "nautilus" } / "nautilus-cwd".
  • There is still no omarchy-default-filemanager. The Defaults setters are omarchy-default-{browser,terminal,editor,agent,dictation}.

The fix proposed in the issue (an xdg-mime-resolving omarchy-launch-filemanager plus a matching omarchy-default-filemanager, mirroring the browser) would also cover the cwd variant.

mrocha-montes avatar Nov 07 '26 13:11 mrocha-montes