From cb36a25060d93100c38b94ee9b17cb5cc4b9d4be Mon Sep 17 00:00:00 2001 From: Jorge Menjivar Date: Wed, 23 Jul 2025 19:38:18 -0700 Subject: [PATCH] Fix slow startup Remove unnecessary watch of sub-directories in trash bins, which causes really long startup times --- src/app.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app.rs b/src/app.rs index 3a938ad..fad22bf 100644 --- a/src/app.rs +++ b/src/app.rs @@ -5852,7 +5852,7 @@ impl Application for App { for path in trash_bins { if let Err(e) = watcher .watcher() - .watch(&path, notify::RecursiveMode::Recursive) + .watch(&path, notify::RecursiveMode::NonRecursive) { log::warn!( "failed to add trash bin `{}` to watcher: {e:?}",