What scripts get run on session start and end?
Posted
by
maaartinus
on Ask Ubuntu
See other posts from Ask Ubuntu
or by maaartinus
Published on 2012-02-29T00:50:54Z
Indexed on
2012/04/12
11:42 UTC
Read the original article
Hit count: 248
I want to mount and unmount an encrypted partition just like ecryptfs
works with the home partition. Where can I put my commands so that they get executed upon session start and session end (the important part is the unmounting when I log out).
UPDATE:
For the session start I'm using .gnomerc
and it does what I want. For the session end I've found no solution. I had a look at the sources of ecryptfs
and it looks quite complicated. It's a pity that nobody thought about creating something analog to .bash_logout
.
© Ask Ubuntu or respective owner