1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
|
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE part PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
"../docbook-xml/docbookx.dtd"
[
<!ENTITY % myents SYSTEM "../fvwm.ent" >
%myents;
]>
<!-- $Id: SetEnv.xml,v 1.3 2007/06/16 12:38:46 griph Exp $ -->
<section id='SetEnv'>
<title>SetEnv</title>
<cmdsynopsis>
<command>SetEnv</command
><arg choice='plain'
><replaceable>variable</replaceable
></arg
><arg choice='plain'
><replaceable>value</replaceable
></arg>
</cmdsynopsis>
<para>Set an environment variable to a new value, similar to the shell's
export or setenv command. The
<replaceable>variable</replaceable>
and its
<replaceable>value</replaceable>
are inherited by processes started directly by fvwm. This can be
especially useful in conjunction with the
<fvwmref mod="FvwmM4"/>
module. For example:</para>
<programlisting>
SetEnv height HEIGHT
</programlisting>
<para>makes the <fvwmref mod="FvwmM4"/> set variable
<emphasis remap='I'>HEIGHT</emphasis>
usable by processes started by fvwm as the environment variable
<emphasis remap='I'>$height</emphasis>.
If
<replaceable>value</replaceable>
includes whitespace, you should enclose it in quotes. If no
<replaceable>value</replaceable>
is given, the variable is deleted.</para>
</section>
|