On Mon, Mar 16, 2015 at 07:42:11PM +0300, Joseph Oficre wrote:
> Hm, i had it, but removed, cuz thought it kinda DIRTY TRICK. Okay, seems it
> is the only option, thank you a lot.
> 

I am not sure how you are starting stuff. You should probably show all
files involved. I start xdm at boot for a graphical login. As described
under "xdm(1) startup" at http://www.openbsd.org/faq/faq11.html the file
$HOME/.xsession will be executed in that case.

My .xsession sources .profile which sets and exports the ENV variable.

All relevant files can be seen here:
https://github.com/eest/dotfiles/blob/master/OpenBSD/.xsession
https://github.com/eest/dotfiles/blob/master/OpenBSD/.profile
https://github.com/eest/dotfiles/blob/master/OpenBSD/.kshrc

With these files I am able to declare a variable in .kshrc, start a new
xterm (or run ksh insida an existing xterm) and have that variable be
set.

-- 
Patrik Lundin

Reply via email to