Click to See Complete Forum and Search --> : .bash_logout equivalent in X
zen0n
06-25-2004, 10:27 AM
looking to get the same functionality as a .bash_logout script when people logged into X logout.
Basically I have users mounting a drive when they login using their .profile file, and I need them to umount the drive as they logoff.
Ryan
I think you could do that with your ~/.xinitrc file. Adding anything you want after the line it says what wm/de you want to start.
zen0n
06-25-2004, 01:40 PM
I always thought the .xinitrc file was for starting apps. I need to call a script when a user logs off.
The only way I could think of this to work is in the xinitrc when it calls startkde it doesn't use a & and it always running in the background? then when the user logs out and startkde finishes it will execute any remaining commands?
Ryan