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
2010/04/12
16:43 UTC
Read the original article
Hit count: 379
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