Re: emelfm2 disregards environment variables set in .bashrc

  • From: peter kostov <peter@xxxxxxxxxxxx>
  • To: emelfm2@xxxxxxxxxxxxx
  • Date: Sun, 22 Jan 2012 13:31:01 +0200

On 01/22/2012 11:11 AM, tpgww@xxxxxxxxxxx wrote:
On Fri, 20 Jan 2012 11:14:28 +0200
peter kostov<peter@xxxxxxxxxxxx>  wrote:

this may be some misconfiguration on my side, but I can not make emelfm2
read the environment variables set in my .bashrc file when not started
from a terminal.
In other words if I start emelfm2 from a terminal everything works. But
if I start it from a launcher and then try to execute some custom
command (which requires some paths to be set) on a file that command
fails because obviously the corresponding variables are not set within
emelfm2.

I am using emelfm2-0.8.0 on Gentoo linux with Xfce 4.8.0

Please point me to a solution of that problem!

 From USAGE document ...

Shell environmental variables may be stored by a command of the form 'set NAME 
VALUE' or 'set NAME=VALUE', retrieved by '$NAME', and cleared by 'set NAME' or 
'set NAME='.

Much like shell environment variables, internal variables may be defined and 
used e.g. for communication between actions or commands. Similar to the case of 
an environment variable, an internal variable can be stored by a command of the 
form 'NAME=VALUE', retrieved by '$NAME', and cleared by 'NAME='. In addition, a 
command '=VALUE' will list the name of any internal variable with that value, 
and just '=' will list all internal variables with their values.

Whitespace surrounding the "=" in any variable-related command is ignored.

AFAIK this stuff still works as described. Anyone know any different ?

Regards
Tom



Thanks for your answer Tom, but it doesn't work here. I have tried both ways described in the usage doc, but the program I am starting still doesn't find those paths. When I try to retrieve the vars by typing e.g.
$PATH
in the command line of emelfm2 I get the following:

Failed to execute child process "/some/path/bla_bla/" (No such file or directory).

And the question two is - is there a way to set variables like when I use the 'source' command in bash? Because there are a bunch of variables and setting them by hand is a bit tedious, although they are stored by emelfm2 and is not necessary to set them each time. On the other hand when changing some of them I have to remember to set change them in emelfm2 too in order to be in sync.

Greetings,
Peter


--
Users can unsubscribe from the list by sending email to 
emelfm2-request@xxxxxxxxxxxxx with 'unsubscribe' in the subject field or by 
logging into the web interface.

Other related posts: