--- Stephen Liu <[EMAIL PROTECTED]> wrote:

> > If you want Firefox
> > run when X starts up, add firefox into .xinitrc
> 
> xterm  -g 80x40+0+0   &
> xclock -g 100x100-0+0 &
> firefox
> twm
> - END -
> 
> (without &)
> 
> On running "startx" after login as "root", Xterm won't start.  That is
> what I expect.  But Firefox can't be minimized nor moved around on the
> screen.

The file .xinitrc is simply a list of shell commands that X will run on
startup. Appending the & to the end of the line means to launch the programs
in the background. Without the & on firefox, the system waits for firefox to
close before starting your window manager (twm). And without the window
manager, you can't minimize/move windows around.

In general, you should put an & at the end of every program you want to start
on .xinitrc, except for the window manager. If you use & on the window
manager, the X window system will appear to shut down as soon as it starts
up. That is because X will shut down when it reaches the end of .xinitrc.
Putting the window manager in the background using & means that .xinitrc
proceeds to the end, and at that point, X shuts down.

Here's an example if you want to understand what I mean. Modify your .xinitrc
to look like this:

twm &
firefox

Now when you close firefox, the X window system will shut down, regardless of
what other programs you start during the course of your X session.



                
__________________________________ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to