Good day! I am wondering if there is a correct place to put X session shutdown code now that .../Xsession.d is used. Kind of like S vs. K in /etc/init.d . After studying all the scripts in the lifecycle of an X session, I don't see any such mechanism. That doesn't mean there isn't one, tho.
If a display manager is used, no problem since it will normally have a reset script. But for startx/xinit, is there a hook for cleanup code? Specifically, I want to kill processes that have daemonized themselves. They don't always die with the X server. As analternative, I can put cleanup into ~/.xsession but that means I can't exec the window manager. TIA, -=greg