Is there a workaround to run a lightdm script? The one in the docs doesn't work. Anything placed there will prevent X from working.
The script I would like to use is my KVM utility synergy. I thought for a while it was synergy that was causing the problems. However, I found that anytime there is a lightdm.conf file with anything on that line X will fail to load.
Example:
greeter-setup-script=/etc/lightdm/test.sh
The text.sh file is simply a shell command to indicate it ran:
test.sh:
#!/bin/bash
date >> /tmp/test.log
Thanks in advance for anyone who has any input, or as I mentioned a workaround so that I could have a resource that will run upon X startup before the user actually logs in.
During the past week I saw this problem many times doing my research and effort to fix it. It turns out that any entries placed in a "lightdm.conf" file for Ubuntu 13.10 will break lightdm.
There is an entry in the lightdm.conf.d provided for this. I added my KVM script to:
This works!
If you can't login normally because a file
50-unity-greeter.conf
has been impaired, you can try this:startx
When you see for example:
unity-greeter_14.04.10-0ubuntu1_amd64.deb
, or anything like greeter.deb, execute this file. reboot and that's all. This installer package will re-install all greeter files.Where did you put your
test.sh
file? Likely that file is not in thePATH
when lightdm tries to execute the script, so it can't find it. And because a session startup script fails, lightdm tries to switch back to greeter-session, which again tries to load that script and this goes on-and-on. Please use absolute path when you specify the script in lightdm.conf.If the above didn't solve it, then please paste the contents of the files in the
/var/log/lightdm/
directory.