I have two scripts - one to mount some folders over SSHFS - and one to unmount.
I would like to launch the mount script when my default Ubuntu desktop is launched (after I log in at the graphical console) - and the unmount script when I "Log Out..." from the cog-wheel at the top-right of the desktop.
Please can someone tell me how to achieve this? What are the most convenient/standard hooks to run commands on desktop launch / exit?