Can I run cool-retro-term (or other visual shell programs) on WSL using Xming without requiring the original terminal to continue?

0

0

I open up the WSL Ubuntu Bash, export DISPLAY=:0, and then fire up ./cool-retro-term; this works perfectly, but it by necessity crashes the CRT if I close the bash. Any tips on avoiding this?

rainydaymatt

Posted 2018-06-07T20:04:04.730

Reputation: 111

Have you tried detaching it? Detaching a running process from a bash shell | Daniel Beard's Programming Blog

– DavidPostill – 2018-06-07T20:15:42.030

Yup; stops output, but closing the term still kills it. – rainydaymatt – 2018-06-07T20:21:54.790

Answers

0

Try nohup ./cool-retro-term &. That should do the trick. Nohup detaches the target process from the current bash terminal, and makes it immune to crashing when the terminal is closed. Note that I said closed, not Ctrl-C'ed. That's what the & is for. It moves the process to the background, so you don't have to worry about accidentally killing the process. After running this command, you can safely close CMD.

a25bedc5-3d09-41b8-82fb-ea6c353d75ae

Posted 2018-06-07T20:04:04.730

Reputation: 133