Why doesn't my environment variable get set?

Posted by reprogrammer on Super User See other posts from Super User or by reprogrammer
Published on 2010-04-12T16:39:16Z Indexed on 2012/04/04 5:32 UTC
Read the original article Hit count: 476

I have to set an environment variable called GDK_NATIVE_WINDOWS to fix the problem with Eclipse buttons in Ubuntu. To set the environment variable, I added the following line to ~/.pam_environment.

GDK_NATIVE_WINDOWS DEFAULT=true

Surprisingly, the environment variable doesn't get set when I echo $GDK_NATIVE_WINDOWS in a terminal. However, all other environment variables that I've listed in ~/.pam_environment are set properly. Besides, when I switch to a tty, e.g. Alt+Ctrl+F1, the environment variable gets set correctly. Can anyone tell what's wrong with setting this environment variable in ~/.pam_environment?

© Super User or respective owner

Related posts about ubuntu

Related posts about eclipse