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

Re: panel launchers and environment



On Tue, 27 Nov 2001 22:54:26 -0500
dman <dsh8290@rit.edu> wrote:

> 
> I have a gnome panel launcher for gvim.  For the command it simply
> says 'gvim'.  I have ash as /bin/sh and /bin/bash is my shell.  In
> ~/.bashrc I have
> 
> export LANG=en_US.UTF-8

Thing is, when X starts up it doesn't read your ~/.bashrc.  When you
run an xterm, bash is fired up which then reads the ~/.bashrc.  The
disconnect between the two environments is somewhat annoying, but
can be easily dealt with by creating an ~/.xsession file that either
export that variable or sources the ~/.bashrc.  Certain display
managers also can set Language variables (but might be limited).

#! /bin/sh
export LANG=en_US.UTF-8
WINDOW_MANAGER=/usr/bin/window-manager
exec $WINDOW_MANAGER

Or some such...

-- 
Eric G. Miller <egm2@jps.net>



Reply to: