Re: FVWM: Global fvwm configuration

From: Dan Espen <dane_at_bae.bellcore.com>
Date: Tue, 28 May 1996 12:14:35 -0400

Carlos Carreras <carreras_at_die.upm.es> writes:
> I am the manager of a few workstations and I would like to provide a basic
> fvwm configuration file for all the users in my network. My interest is in
> maintaining a menu structure which is updated everytime a new application is
> installed so it can be accessed from the workspace menu by everyone. Besides,
> each user should be able to configure his fvwm with his $HOME/.fvwm2rc.
>
> Is it possible to do this with fvwm2? How? I have tried many things, but I
> have not been successful. Here is what is happennig:
>
> - If there is a $HOME/.fvwm2rc, no other configuration file seems to be read
> during configuration.
>
> - If there is no $HOME/.fvwm2rc, I can't find where the default configuratio
> should reside to be read by fvwm2. It is not even clear how the file shoul
> be called: .fvwm2rc or system.fvwmrc. I have tried both names in several
> places but none of them worked:
>
> /usr/lib/X11/fvwm/
> /usr1/lib/X11/fvwm/ (I have X11 in /usr1)
> /usr1/lib/X11/twm/
> /usr8/lib/fvwm/ (fvwm is installed in /usr8)
>
> - I also tried to call fvwm2 with the option -f "Read <file>" but that
> didn't work either. (What am I doing wrong?)
>
> I have version 2.0.42. Is there anything else I can do? Thanks in advance!

Invoke fvwm2 thru a shell. In "/usr/public/bin/fvwm2" (or wherever):

#!/bin/ksh

# Shell to start fvwm2:

x=`uname -a`
case $x in
  SunOS*5\.*)
              ARCH_OS=sun_os5;;
  SunOS*4\.*)
              ARCH_OS=sun_os4;;
esac

export SYSBITMAPS=
case $ARCH_OS in
  sun_os4)
           export SYSICONS=/usr/local/icons
           export FVWMPLAY=play
           FVWM=/usr/public/src/fvwm-2.0.40
           ;;
  sun_os5)
           export SYSICONS=/opt/icons
           export FVWMPLAY=audioplay
           export SYSBITMAPS=$i/include/X11/bitmaps
           FVWM=/opt/public/src/fvwm-2.0.42
           ;;
  *)
     print "fvwm only supported on Sun OS 4 and 5 (by this shell)" >/dev/console
     exit 1;;
esac

export FVWMHOME=$FVWM/$ARCH_OS

if [ ! -f $HOME/.fvwm2rc ] ; then
  if [ -f $HOME/.fvwmrc ] ; then
    print "You currently have a version 1 .fvwmrc." >/dev/console
    print "Converting it using:" >/dev/console
    print " $FVWMHOME/fvwmrc_convert" >/dev/console
    $FVWMHOME/fvwmrc_convert
  else
    print "You don't currently have a .fvwm2rc file creating one" >/dev/console
    cp /u/tools/dane/fvwm2.0.40/new_user.fvwm2rc $HOME/.fvwm2rc
  fi
fi
export FVWMICONS=$FVWM/icons
export FVWMAUDIO=$FVWM/fvwm_audio

exec $FVWMHOME/fvwm2


The advantages to using a shell, is that you can install new fvwm2
releases more easily.

As far as sharing menu structures, you would want to put "reads" in the
"new_user.fvwm2rc" file like this:

  read $FVWMHOME/misc.appl.menus

(Use $FVWMHOME, or any other variable you set in your startup shell.)

> Carlos Carreras
> Univ. Pol. Madrid
> --

--
Dan Espen                                    Phone: (908) 699-5570
dane_at_bae.bellcore.com
444 Hoes Lane  Room RRC 1C-214
Piscataway, NJ 08854
--
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 Tue May 28 1996 - 11:56:40 BST

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:59 BST