Advertisement Jump to content
Sign in to follow this  
Genjix

shutdown/logout script?

This topic is 4970 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Advertisement
Depends on your shell. csh and tcsh put things in ~/.logout. With other shells (e.g. bash), you must trap the logout event and have it run a script: add trap $HOME/.logout 0 to your ~/.profile (untested, got that from a couple web searches).

Share this post


Link to post
Share on other sites
Bash has ~/.bash_logout. I use it to run clear to clean the login screen.

Share this post


Link to post
Share on other sites
Thanks for your help, but the bash_logout and bash_login are prevented from running when using kde/gnome.

with kde I found out (after extensive ircing) that the beginning part of the script is kde startup and the end, is kde shutdown, so you can simply edit that.

Thanks again though for your help.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!