You are not logged in.
During my meandering around I recall seeing a script that would close a users programs when he logged out of his xfce4 session (though I may have found it in relation to lxdm - I'm not sure), and I'm almost certain that I saw it around the Arch world, but I'm blowed of I can find it now, and I wouldn't mind taking a look at it again. Does anyone know where it is?
It was basically a script to address the issue of xfce not cleanly closing a users programs at logout (leaving some of them still running in the background).
Ryzen 5900X 12 core/24 thread - RTX 3090 FE 24 Gb, Asus B550-F Gaming MB, 128Gb Corsair DDR4, Cooler Master N300 chassis, 5 HD (2 NvME PCI, 4SSD) + 1 x optical.
Linux user #545703
/ is the root of all problems.
Offline
wouldn't it just be a matter of sticking someting to .bash_logout or .bash_profile that loops through all processes of the current user and issuing a 'kill' to each?
Offline
I've tried that - but it doesn't quite do the job. There are some processes that exit gracefully, and some that just don't exit (I have no idea why). The script I'm looking for had several checks and balances built in, but I only looked at it very briefly and forget the detail.
Ryzen 5900X 12 core/24 thread - RTX 3090 FE 24 Gb, Asus B550-F Gaming MB, 128Gb Corsair DDR4, Cooler Master N300 chassis, 5 HD (2 NvME PCI, 4SSD) + 1 x optical.
Linux user #545703
/ is the root of all problems.
Offline
Could it be xfce restarting processes after they get killed? See xfce's settings -> session and startup -> session -> restart style .
Still it seems something is wrong with the way you configured xfce/x/login, or a bug, because you shouldn't need such a script.
Last edited by rwd (2012-01-30 08:12:17)
Offline
No, this is normal behaviour for xfce that I've seen reported. It's not all user processes that get left behind, and most stuff is ended normally. I have xfce configured NOT to save the session (and similarly I have xfce's logout dialogue configured the same way). It's not a big issue. Rather, it's me with a little bit of OCD where my computer is concerned and I want everything as clean as is possible before logout/shutdown/restart.
EDIT: I should say I want everything nearly as clean as possible. I have a couple of scripts to start two background processes at boot that I want left alone. In particular, there is one server that I do NOT want to exit cleanly, but xfce leaves that alone anyway since I run it in a detached screen process.
Like I said, it's not the end of the world, and most people probably wouldn't notice the effect I'm talking about.
Last edited by Roken (2012-01-30 11:13:30)
Ryzen 5900X 12 core/24 thread - RTX 3090 FE 24 Gb, Asus B550-F Gaming MB, 128Gb Corsair DDR4, Cooler Master N300 chassis, 5 HD (2 NvME PCI, 4SSD) + 1 x optical.
Linux user #545703
/ is the root of all problems.
Offline