View Single Post

   
  #1 (permalink)  
Old 02-21-2008, 05:33 AM
Peter
 
Posts: n/a
Default OT: logout scripting for .xsession?

Sorry to post here, but the linux.questions and .help forums are so full
of spam...

I normally start X manually from a console and use .bash_profile
and .bash_logout to set up and clean up my environment. In particular, I
use fuse for avfs and since it will not unmount without fusermount. I also
have some local dmcrypt filesystems that need to be manually unmounted and
the /dev/loop devices cleared.

All this is fine in a console TTY.
..bash_profile
****blah

..bash_logout
****unblah

However, if I use kdm/gdm or another graphical login manager, how do I
clean up? If I use .xsession, can I just do something like this?

..xsession
fusermount
mount dmcrypt volume
# then
startx window manager
# done
fusermount UNMOUNT
unmount dmcrypt and clear loop devices

or won't that work.

If there a standard for cleaning up user local stuff?

TIA.
--
Peter
Reply With Quote