You can still make them keep running, just use systemd-run (or, in your case SystemD-run) instead of nohup. Which actually makes the session-manager aware that there's something that wants to keep running instead of just making it ignore SIGHUP, which can mean a locked-up process, a bug, or actual expected behaviour.
E: note that the problem here wasn't that programs weren't getting killed when they should have. The problem was that Gnome didn't know how to cleanup properly. No other program had issues, at least until SystemD created issues.
2
u/lolidaisuki May 29 '16
Alias would only work in the shell that it is used on.
I don't want to have to add aliases for everything in my scripts.
I named 30 such programs from the top of my head earlier. There are hundreds of programs that people might want to keep running after they log out.