Tuesday, 21 August 2012

Re: gnome-applet-volume-control is a huge usability regression

hi,
Am Dienstag, den 21.08.2012, 06:45 -0400 schrieb Gene Heskett:
> > > (Someone correct me if i'm wrong, my knowledge is old and non-Ubuntu,
> > > but i don't see why this would have changed.)
> > > All scripts in /etc/rc.5/ will not be run until runlevel 5 is
> > > reached, which is typically the "graphical" run level.
> >
here is an upstart script, just store it in /etc/init/myscript.conf and
be done:

--- snip ---

description: "running myscript"

start on (starting gdm
or starting kdm
or starting xdm
or starting lxdm
or starting lightdm)

task
script
/path/to/your/script
end script
--- snap ---

this will fire your script only if the display manager emitted the
"starting" event .. for more details see [1]

ciao
oli

[1] http://upstart.ubuntu.com/cookbook/