Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open new programs not as child of nnn? #81

Closed
javeq1 opened this issue Feb 23, 2018 · 11 comments
Closed

Open new programs not as child of nnn? #81

javeq1 opened this issue Feb 23, 2018 · 11 comments

Comments

@javeq1
Copy link

javeq1 commented Feb 23, 2018

I really like how fast it is to browse directories with nnn and I would like to use it as my main file manager, but I have a small problem and I don't know if there is a configuration to solve it.
When using nnn if, for example, I open a pdf using enter then evince is started with the opened file. If then I close the terminal containing nnn evince is killed too. Is there a way to keep programs started by nnn opened when closing nnn?
Thank you for your work!

@jarun
Copy link
Owner

jarun commented Feb 23, 2018

@jarun
Copy link
Owner

jarun commented Feb 24, 2018

I believe this would solve your problem. So closing the issue. If it's not working, feel free to reopen.

@jarun jarun closed this as completed Feb 24, 2018
@jarun
Copy link
Owner

jarun commented Feb 24, 2018

Also, just for the sake of reference, could you please leave a note on your OS and DE?

@javeq1
Copy link
Author

javeq1 commented Feb 24, 2018

I am already using that because I had the problem of nnn being blocked when opening a file. Now that problem is solved but there is still this strange problem I described you.
I am using Arch Linux with i3wm. I installed nnn using the aur package. Don't know if it is important but I am also using zsh as my shell instead of bash

@jarun
Copy link
Owner

jarun commented Feb 24, 2018

That's strange because there is no special handling of pdf files. Is it only happening in case of evince or other GUI applications too?

@jarun
Copy link
Owner

jarun commented Feb 24, 2018

I have tested on my system with evince, can't reproduce the issue. I ran with xfce4-terminal and terminator.

I'm afraid you'll have to try the following:

  1. check out the latest code from master
  2. check ps output to figure out which process is the parent of the evince process

@javeq1
Copy link
Author

javeq1 commented Feb 28, 2018

I installed latest version using nnn-git from the aur and I still have the problem.
Using ps I found out that:

  1. evince parent is "xdg-open";
  2. "xdg-open" parent is nnn.

I am using terminator as a terminal, but I have the same problem with xfce4-terminal.
I also noticed that if I quit nnn without closing the terminal than evince is not killed, even if after that I close the terminal

@jarun
Copy link
Owner

jarun commented Feb 28, 2018 via email

@jarun jarun reopened this Mar 15, 2018
@jarun
Copy link
Owner

jarun commented Mar 15, 2018

I am working on this tonight. 👍

@jarun jarun closed this as completed in 70c39a0 Mar 15, 2018
@jarun
Copy link
Owner

jarun commented Mar 15, 2018

Can you please confirm if the patch on master fixes your issue?

@javeq1
Copy link
Author

javeq1 commented Mar 16, 2018

I confirm that it's solved! Thank you!

@lock lock bot locked and limited conversation to collaborators May 21, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants