I use xfce4 as my desktop environment, running on a Gentoo box. I want to start the pulseaudio server when I login. In general, how do I get a script to run as soon as I login to xfce, and how do I get a script to run when I logout?
If you have root access, you can always edit the startxfce4 script. According to the documentation:
Or you can use the
For the logout part, see the http://wiki.xfce.org/tips page for the personal logout script.
You may want to check out the following which enables you to play login and logout sounds in Ubuntu xfce4.
Probably the simplest solution I have seen.