Re: FVWM: Givning FVWM the right environment

From: Mikhael Goikhman <migo_at_homemail.com>
Date: Thu, 26 Sep 2002 13:03:02 +0000

On 26 Sep 2002 14:31:17 +0200, Johan Svedberg wrote:
>
> I'm working on giving FVWM the "correct" environment (variables etc) so
> that application I run from FVWM functions correctly. I know I can just
> define them in my ~/.xinitrc but that's kind of ugly, so I'm just
> curious how other people have solved this?

Every application has its own "vision" regarding how to get the
configuration (from variables, files, options, database and so on).

For applications that require setting variables (for example 'less' uses
$LESS, $LESSEDIT, $LESSOPEN, $LESSCHARSET) you may do this in the login
shell startup files (the details depend on the shell). An application
launched by fvwm inherits all environment variables that fvwm itself gets.

If an application requeres some specific preparations, create a wrapper
script for this application and run the wrapper instead.

For example ~/bin/wine (or /usr/local/bin/wine) may look like this:

#!/bin/sh
PATH=/opt/wine/bin:$PATH
LD_LIBRARY_PATH=/opt/wine/lib:$LD_LIBRARY_PATH
WINEPREFIX=/tmp/wine

PROG=`basename $0`
/opt/wine/bin/$PROG --managed "$_at_"


Regards,
Mikhael.
--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Thu Sep 26 2002 - 08:04:05 BST

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