Try this:
Contents of my /usr/local/bin/question file:
Code:
!/bin/bash
zenity --question --title "Terms and Conditions" --text "Do you agree to the terms and conditions?"
...I'm using zenity instead (maybe a Xubuntu thing since gdialog doesn't work for me).
Add to the end of /etc/lightdm/lightdm.conf the following line:
Code:
session-setup-script=/usr/local/bin/question
...save the file and restart lightdm or reboot.
After you successfully authenticate, that script will be run and the dialog box displayed. By default, on my system if I select No, it dumps me back to the login prompt.
Bookmarks