diff options
| author | 2018-03-16 04:24:29 +0530 | |
|---|---|---|
| committer | 2018-03-16 04:39:49 +0530 | |
| commit | 70c39a063d1097d33b8967b9a31618b5f826db72 (patch) | |
| tree | e53c322b094a6a73428941ecfa7d28c1a12ee277 /scripts | |
| parent | 9a359b06f0987e2a1d9b734119a04bf152acfea4 (diff) | |
| download | nnn-70c39a063d1097d33b8967b9a31618b5f826db72.tar.gz | |
Fix #81: GUI programs shouldn't exit on closing the parent terminal
Issue reproduction steps:
1. Spawn a GUI program e.g. open a PDF file in zathura or evince.
2. Without quitting `nnn` close the terminal.
3. Notice that the application quits too.
Can be a nagging issue if someone is not using a drop-down terminal.
Fix: detach a GUI child and start it in a new session.
There are 2 aspects to this commit:
- It fixes #81: in cases where we do not wait for a spawned child we can assume
that the child is a GUI process. We detach and spawn the child in a new session.
- It changes the behaviour to @Rahi374's suggestion in PR #40 i.e. invoke the DE
opener in F_NOWAIT mode.
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions