I use Synergy so I can use the PC's mouse and keyboard with the RPi on my desk. I don't use a login and it boots directly to the desktop, so I start Synergy using the LXDE(-pi) autostart file. That all works great.
I created some additional users so the grandkids can play on the same RPi without giving them the "pi" users sudo and other permissions (damage control). But the problem is when I logout from the desktop, and get the login screen for another user, I can't figure out how to get Synergy to run for that screen. The login screen uses mouse/cursor so I should be able to use Synergy.
I use it on FreeBSD and can have Synergy start with the login screen, and once logged in kill synergy and start it again for that users desktop. If the user logs out it kills Synergy and restarts it for the login screen again. But I can't seem to figure out how to do that with Raspbian. I added it to /etc/lightdm/lightdm.conf but it appears that it only reads that on the initial startup.
Does anyone know if/where I can config it to run the Synergy script for the login screen when leaving the desktop? I assume that lightdm provides the login screen, but I can't figure out what starts it when you log out of the desktop. Or maybe I'm not looking in the right place and lightdm is not the answer.