I have a Point of Sale kiosk system that needs to logout the user profile whenever the PoS system application is closed.
At the moment I've solved this by adding
... exec `nautilus -n` & exec /usr/bin/globeonepos
to the end of .profile.
Is there a better way of doing this?