From ec7eb3e41663fd3654bd0995dd8d451bcc64fe18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=89=E5=92=B2=E9=9B=85=20misaki=20masa?= Date: Thu, 3 Jul 2025 21:41:49 +0800 Subject: [PATCH] fix: fallback to `PollWatcher` on NetBSD (#2941) --- yazi-core/src/mgr/watcher.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yazi-core/src/mgr/watcher.rs b/yazi-core/src/mgr/watcher.rs index b0814eb7..4943350b 100644 --- a/yazi-core/src/mgr/watcher.rs +++ b/yazi-core/src/mgr/watcher.rs @@ -36,7 +36,7 @@ impl Watcher { }; let config = notify::Config::default().with_poll_interval(Duration::from_millis(500)); - if yazi_adapter::WSL.get() { + if yazi_adapter::WSL.get() || cfg!(target_os = "netbsd") { tokio::spawn(Self::fan_in(in_rx, PollWatcher::new(handler, config).unwrap())); } else { tokio::spawn(Self::fan_in(in_rx, RecommendedWatcher::new(handler, config).unwrap()));