dmenu doesn't set environment variable as per my .bash_profile when running Emacs

Posted by proofit404 on Super User See other posts from Super User or by proofit404
Published on 2012-11-15T17:26:39Z Indexed on 2012/11/20 11:09 UTC
Read the original article Hit count: 350

Filed under:
|
|

I have following ~/.bash_profile

[[ -f ~/.bashrc ]] && . ~/.bashrc

and ~/.bashrc

### Check for shell interactivity.

if [[ $- != *i* ]] ; then
    return
fi

### Nyan-cat prompt.

PS1="\`if [ \$? = 0 ]; then echo \[\e[35m\]^_^\[\e[0m\]; else echo \[\e[31m\]O_O\[\e[0m\]; fi\` \$ "

### PATH

export PATH=$PATH:$HOME/bin

So when I run emacs from terminal all OK. When I start it with dmenu (getenv "PATH") and exec-path variable doesn't contain ~/bin directory.

When I do it in xfce with xfrun4 command with same bash configuration all seams to work too.

What is the problem with dmenu?

© Super User or respective owner

Related posts about emacs

Related posts about bashrc