So, after trying stuff in a VM, I have a solution. It is functionally equivalent, however what it is not is sexy:
Tested only for 17.04 so far
Edit: @mdooley tested this on Xenial:
Test this in a VM first. Failure to execute precisely those steps may prevent you from login in.
- Create a file in a directory readable before login (exit $HOME if you've encrypted it.)
gksudo pluma /usr/local/bin/greeter_zen.sh
#! /bin/bash
bannerText="Wanna kill all humans?"
zenity --question --text="$bannerText" --width=800 --height=200
while [ $? == 1 ]; do
zenity --question --text="$bannerText" --width=800 --height=200
done
- Save the file, quit the editor then make the file executable:
sudo chmod +x /usr/local/bin/greeter_zen.sh
- Create another file (name is to your discretion, but use the same "10-" prefix and the same directory:
gksudo pluma /usr/share/lightdm/lightdm.conf.d/10-corp.conf
[SeatDefaults]
greeter-setup-script=/usr/local/bin/greeter_zen.sh