dmenu doesn't set environment variable as per my .bash_profile when running Emacs
- by proofit404
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?