Re: fvwm2

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

 



On 14:53 07 Jul 2003, Globe Trotter <itsme_410@xxxxxxxxx> wrote:
| Sorry but how does one create a .Xclients file? I could not find any sample
| anywhere....

It's just a shell script. Normally it fires off your startup clients (eg
an xterm, a calendar, an email client, whatever):

	#!/bin/sh
	xterm &
	ical &

However, because it's sourced by the startup it can preempt the enclosing
'default" desktop. So this:

	#!/bin/sh
	xterm &
	ical &
	exec fvwm

will fire off your default clients and then segue into fvwm instead of
falling out and running up Gnome or whatever.

Tip: when firing off clients it's better to do them in a subshell:

	#!/bin/sh
	(
	  xterm &
	  ical &
	)
	exec fvwm

In this eay they're children of the subshell instead of fvwm.  When the
subshell exits (at the closing bracket there) they become children of
init, whose purpose is to wait for ophans to die.

If you leave them as children of the main script as in the first two
examples, if the main script doesn't end up being a program that wait()s
for children then when/if you close the xterm/ical/whatever there will
be a zombie process lying around, holding exit status that nobody is
asking for. Untidy (though fairly harmless).

Cheers,
-- 
Cameron Simpson <cs@xxxxxxxxxx> DoD#743
http://www.cskk.ezoshosting.com/cs/

Carpe Daemon - Seize the Background Process
        - Paul Tomblin <ab401@xxxxxxxxxxxxxxxxxxxx>




[Index of Archives]     [Fedora Users]     [Centos Users]     [Kernel Development]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat Phoebe Beta]     [Yosemite Forum]     [Fedora Discussion]     [Gimp]     [Stuff]     [Yosemite News]

  Powered by Linux