For being able to use synergy at login stage already, the synergy how to proposes to enter the synergy calls into lightdm config files:
https://help.ubuntu.com/community/SynergyHowto#Autostart_Synergy_before_logging_in_.28LightDM.29
While this works for the synergy part, lightdm is broken then. Well ... it doesn't seem broken, but it seems to having forgot to start the rest of its stuff which lets you alone with a black screen and the old cross styled mouse cursor. The latter you can control without a problem via synergy! So this part works.
Assuming you want to use your login manager to login to your system, as I do, it is great to have working synergy control over a black screen, but we want more features there!
After trying everything I could find (including creating a lightdm.conf.d directory), the result was identical everytime.
SOLUTION:
Place your synergy call into a separate script file (e. g. /bin/synergyc-greeter.sh) in which the synergy call is suffixed with ampersand (&) to return the script - otherwise lightdm seems to wait for it or s. th. like that
Solution to the next problem you will run into after the above is working:
If you don't want to let synergyc run as root or the other way round - if you already set up synergyc to automatically run within your user session - you end up with two synergyc processes.
For this you can set up a second script (e. g. /bin/synergyc-cleaner.sh) that is called by lightdm when a user logs in.
FACTS:
nsk@ddlap0602:/etc/lightdm$ cat lightdm.conf
[SeatDefaults]
user-session=ubuntu
greeter-session=unity-greeter
display-setup-script=/bin/synergyc-greeter.sh
session-setup-script=/bin/synergyc-cleaner.sh
nsk@ddlap0602:/etc/lightdm$ cat /bin/synergyc-greeter.sh
/usr/bin/synergyc -f --name ddlap0602 pspc01.ps.dd.nextiraone-eu.ned &
nsk@ddlap0602:/etc/lightdm$ cat /bin/synergyc-cleaner.sh
killall synergyc &
nsk@ddlap0602:/etc/lightdm$
Kategorie(n): Linux