From 269df21ecb36d822cae993894b3c2bb2f5c885db Mon Sep 17 00:00:00 2001 From: sommerfeld Date: Wed, 13 May 2026 13:43:21 +0100 Subject: fix(yazi): mark xdg-open opener as orphan yazi tracks child processes as running tasks. Default `open` opener runs `xdg-open` synchronously, so opening a pdf (or any file handed off to an external viewer) leaves yazi convinced a task is still running and it prompts 'unfinished tasks, quit anyway?' on exit. orphan = true detaches the spawned process from yazi so the quit is clean. --- dot_config/yazi/yazi.toml | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'dot_config/yazi/yazi.toml') diff --git a/dot_config/yazi/yazi.toml b/dot_config/yazi/yazi.toml index 793ca59..0ef2780 100644 --- a/dot_config/yazi/yazi.toml +++ b/dot_config/yazi/yazi.toml @@ -3,3 +3,10 @@ show_hidden = true scrolloff = 10 linemode = "mtime" title_format = "Yazi: {cwd}" + +# Override the default `open` opener so xdg-open is detached from yazi +# (otherwise yazi treats the viewer as an unfinished task and prompts on quit). +[opener] +open = [ + { run = 'xdg-open "$@"', desc = "Open", orphan = true }, +] -- cgit v1.3.1