[LightDM] GDB before/after hook script replacements?

Guido Berhoerster gber at opensuse.org
Mon Oct 17 05:37:13 PDT 2011


* Gabriel Rossetti <gabriel.rossetti at trafigura.com> [2011-10-17 14:11]:
> > -----Original Message-----
> > From: lightdm-bounces+gabriel.rossetti=trafigura.com at lists.freedesktop.org [mailto:lightdm-bounces+gabriel.rossetti=trafigura.com at lists.freedesktop.org] On Behalf Of Guido Berhoerster
> > Sent: 17 October 2011 14:00
> > To: lightdm at lists.freedesktop.org
> > Subject: Re: [LightDM] GDB before/after hook script replacements?
> > 
> > * Gabriel Rossetti <gabriel.rossetti at trafigura.com> [2011-10-17 13:42]:
> > > Hi All,
> > >
> > > I'm about to upgrade to Ubuntu 11.10 which used LightDM instead of GDM. I use Synergy-FOSS to share my mouse and keyboard in between  several machines, the server is running on the Linux box. I currently use the GDM scripts & before/after hooks to run it:
> > >
> > > *       /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: (run after login, this kills the version running as root)
> > >       [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]
> > >
> > > I'm trying to find the equivalent for LightDM but I'm coming up empty handed... can someone please help?
> > 
> > greeter-setup-script is the equivalent to Init, the Xsession.d
> > stuff is probably run by your distribution's session wrapper
> > controlled by the session-wrapper setting and there is currently
> > no equivalent to GDM's PostLogin.
> 
> So I guess my next question is how would I be able to have Synergy server running like it currently does?

Sorry, I don't know anything about that driver but the approach
above seems already problematic, as soon as you start several
greeters there will be multiple instances of that daemon running.
-- 
Guido Berhoerster


More information about the LightDM mailing list