Open yan12125 opened 3 years ago
Check how other desktop environments work?
I think other DEs may do nothing, other than stopping some of their own processes. I've seen Gnome/KDE processes that persisted after logging out of them (and took lots of CPU time until I killed them in LXQt). That's not what we want.
IMHO, https://github.com/lxqt/lxqt-session/pull/374 is an elegant and clean solution. A list that can be edited/provided by the user and also a few hard-coded exceptions might solve this problem.
I think starting processes that are thought to survive the session is a dev-only thing - an average user doesn't do it.
We have few options here I can imagine now:
For now the easiest way is to let the "parent" process of "need to live" process to be alive and that should ignore the TERM signal -> then our "need to live" process will survive, e.g.:
#/bin/bash
trap 'DUMMY=1' TERM
# start the requested process
"$@"
Expected Behavior
tmux server created inside LXQt persists after logging out and can be attached later
Current Behavior
Since #374, the tmux server is gone upon logging out
Possible Solution
Steps to Reproduce (for bugs)
pstree
:Context
I wanted to observe how proccese are killed #374 by running
journalctl --follow
in tmux.System Information