Re: Start something from sawfishrc



On Tue, 2003-11-11 at 02:13, stktrc wrote:
> Bret Hughes <bhughes elevating com> writes:
> 
> > On Mon, 2003-11-10 at 08:19, stktrc wrote:
> > > c marschalek schrack-seconet com writes:
> > > 
> > > > sawfish &
> > > > /usr/local/bin/myapp
> > > 
> > > Try starting your apps before the window manager.
> > > 
> > > app1 &
> > > app2 &
> > > sawfish
> > 
> > I was going to suggest that since that is what I do in my .xinitrc, but
> > since I did not really know if that was correct, did not.  Why does that
> > work?  It seem counter-intuitive.
> 
> >From the Debian xinit man page:
> 
>        An important point is  that  programs  which  are  run  by
>        .xinitrc  should  be  run in the background if they do not
>        exit right away, so that they don't prevent other programs
>        from  starting  up.   However, the last long-lived program
>        started (usually a window manager  or  terminal  emulator)
>        should  be left in the foreground so that the script won't
>        exit (which indicates that the user is done and that xinit
>        should exit).
> 
> Therefore, the window manager should not be put in the background (as
> the xinit script, and hence the X session, then would exit
> prematurely).
> 
> This leaves starting the other programs before the window manager as
> the only option.  It doesn't matter if programs are started before or
> after the window manager anyway.  They all get managed by the wm.


That makes perfect sense and sounds familiar too.  Must be why I did it
that way :)

Bret




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]