From 33cb851539cc0df982e79d657f5d0f35cc634d7d Mon Sep 17 00:00:00 2001 From: kenji Date: Thu, 15 Jan 2026 16:14:27 -0600 Subject: [PATCH] fix(yazi): set as default handler for directories This fixes the issue where "Show in folder" (e.g., in Firefox) would incorrectly open other applications like Zathura. By explicitly associating 'inode/directory' with 'yazi.desktop', folders will now open in Yazi as expected. --- apps/yazi/default.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/apps/yazi/default.nix b/apps/yazi/default.nix index cb35761..bcfd0e9 100644 --- a/apps/yazi/default.nix +++ b/apps/yazi/default.nix @@ -107,6 +107,14 @@ in { default=hyprland;gtk org.freedesktop.impl.portal.FileChooser=termfilechooser ''; + + xdg.mimeApps = { + enable = true; + defaultApplications = { + "inode/directory" = "yazi.desktop"; + }; + }; + wayland.windowManager.hyprland.settings.windowrulev2 = [ # File picker yazi - floating, centered, smaller size "float, class:^(org\\.hakase\\.popup\\.yazi)$"