ForĀ 16.04 create the following file (it doesn’t exist)
/etc/lightdm/lightdm.conf
with the contents:
[Seat:*]
autologin-user=
[SeatDefaults]
greeter-setup-script=/usr/bin/synergyc <hostname>
Ref: https://askubuntu.com/questions/918137/start-synergy-or-any-application-before-logging-in-ubuntu-16-04-2-lts