Re: FVWM: xinitrc

From: Jacob Morzinski <jmorzins_at_MIT.EDU>
Date: Wed, 21 May 1997 12:20:23 EDT

On Wed, 21 May 1997, Bruce Stephens <B.Stephens_at_isode.com> wrote:
>
>sclark_at_digex.net said:
>> twm &
>
>fvwm is a window manager: you must run it instead of twm, so change the first
>line to "fvwm &", or more safely "(fvwm2 || fvwm || twm) &" or something.
>fvwm will automatically read .fvwmrc (fvwm2 will read .fvwm2rc, by default).

That may not do what you want. The || will cause fvwm to run if
fvwm2 is not found, but will also run fvwm if fvwm2 exits with a
non-zero exit status.

If you know where the fvwm2 program is, another way to test for
its existance is

# or, sh code
if [ -r /the/path/to/fvwm2 ]; then
    fvwm2 &
elif [ -r /the/path/to/fvwm ]; then
    fvwm &
else
    twm &
fi

# csh code
if ( -r /the/path/to/fvwm2 ) then
    fvwm2 &
else if ( -r /the/path/to/fvwm ) then
    fvwm &
else
    twm &
endif

Sincerely,
-- 
 Jacob Morzinski                                jmorzins_at_mit.edu
--
Visit the official FVWM web page at <URL:http://www.hpc.uh.edu/fvwm/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_hpc.uh.edu.
To report problems, send mail to fvwm-owner_at_hpc.uh.edu.
Received on Wed May 21 1997 - 11:22:14 BST

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:38:00 BST