1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
xexit is a small program to allow you to execute a shell script or program at
the end of an X session automatically.
xexit <programname>
xexit will background, waiting for the end of the session. At the end of the
session, it will execute <programname>. This could be a shell script that
cleans up rotton, ugly stupid programs that refuse to behave nicely and exit,
evolution-dataserver, I'm looking at you.
You can, via the magic of xatoms, cause the program to "die" and execute it's
script without ending the session, by setting an Xprop:
xprop -root -f LTSP_XEXIT 8s -set LTSP_XEXIT "DIE"
If you want the program to exit WITHOUT executing the program:
xprop -root -f LTSP_XEXIT 8s -set LTSP_XEXIT "EXIT"
|