LightDM startup scripts

Asked by Gabriel

Hi all,

I'm wanting to upgrade from 11.04 to 11.10 and everything looks ok except one thing. I am using Synergy Foss to share my mouse & keyboard with other PCs. The server is the Ubuntu box about to be upgraded, so it won't have GDM anymore since LightDM took over. I would like it to be running when the login screen is on (so I don't have to log into it to be able to use another machine) and running when the user logs into the session. I am currently using the following to achieve this:

• /etc/gdm/Init/Default: (to have it start so it’s running with GDM login screen, it runs as root)
[code start]
/usr/bin/killall synergys
while [ $(pgrep -x synergys) ]; do sleep 0.1; done
/usr/bin/synergys --config /etc/synergy.conf
[code stop]

• /etc/gdm/PostLogin/Default: (this kills the version running as root when the user logs in)
[code start]
/usr/bin/killall synergys
while [ $(pgrep -x synergys) ]; do sleep 0.1; done
[code stop]

• /etc/X11/Xsession.d/85synergys: (runs during the user’s session startup, runs it as the user)
[code start]
/usr/bin/killall synergys # not sure why this is here, the examples on the net had this, probably a mistake)
while [ $(pgrep -x synergys) ]; do sleep 0.1; done
/usr/bin/synergys --config /etc/synergy.conf
[code stop]

What is the preferred way of doing this on the new Ubuntu that uses LightDM?

Thanks

Question information

Language:
English Edit question
Status:
Answered
For:
Light Display Manager Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Sam_ (and-sam) said :
#1

Moved the question to project which also incl. Question #172773 regarding synergy.
There is already a german Wiki where cmds (incl. remote) are mentioned, section 'lightdm.conf'.
http://translate.google.de/translate?sl=auto&tl=en&js=n&prev=_t&hl=en&ie=UTF-8&layout=2&eotf=1&u=http%3A%2F%2Fwiki.ubuntuusers.de%2FLightDM&act=url

Maybe changelog is useful too where reorganized configuration is described, section 'lightdm (0.9.2-0ubuntu1)'.
http://changelogs.ubuntu.com/changelogs/pool/main/l/lightdm/lightdm_0.9.3-0ubuntu1/changelog

Revision history for this message
Gabriel (misc-evotex) said :
#2

Ok, thanks, I'll try that and keep you posted!

Gabrie

Can you help with this problem?

Provide an answer of your own, or ask Gabriel for more information if necessary.

To post a message you must log in.