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.
This commit is contained in:
kenji
2026-01-15 16:14:27 -06:00
parent 5ec7f5edc7
commit 33cb851539
+8
View File
@@ -107,6 +107,14 @@ in {
default=hyprland;gtk default=hyprland;gtk
org.freedesktop.impl.portal.FileChooser=termfilechooser org.freedesktop.impl.portal.FileChooser=termfilechooser
''; '';
xdg.mimeApps = {
enable = true;
defaultApplications = {
"inode/directory" = "yazi.desktop";
};
};
wayland.windowManager.hyprland.settings.windowrulev2 = [ wayland.windowManager.hyprland.settings.windowrulev2 = [
# File picker yazi - floating, centered, smaller size # File picker yazi - floating, centered, smaller size
"float, class:^(org\\.hakase\\.popup\\.yazi)$" "float, class:^(org\\.hakase\\.popup\\.yazi)$"