Opened files in external program get closed when leaving yazi #1796
-
I am running yazi in a tmux session like this:
I open a .pdf in the system viewer (evince for me) with yazi via |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
I have a similar problem. |
Beta Was this translation helpful? Give feedback.
-
Try setting |
Beta Was this translation helpful? Give feedback.
-
I added a opener with [opener]
open = [
{ run = 'xdg-open "$@"', orphan = true, desc = "Open", for = "unix" }, # add orphan = true
] |
Beta Was this translation helpful? Give feedback.
-
The only side effect would be for tasks you may want to cancel, like copying or decompressing files. Those tasks usually run in the shell, so it would be harder to cancel them otherwise. If you just want to open a PDF, |
Beta Was this translation helpful? Give feedback.
-
Thanks for the helpful discussion! |
Beta Was this translation helpful? Give feedback.
I added a opener with
orphan = true
as follows, and it works.I also see that there's an FAQ entry named Why is "orphan" set to false by default?, so this setting has side effects.