Operating System - HP-UX
1844033 Members
2663 Online
110226 Solutions
New Discussion

Setting environment variables while using X Windows.

 
SOLVED
Go to solution
Yasir_3
Occasional Contributor

Setting environment variables while using X Windows.

Dear All,

How can I set the environment variables in X Windows environment?

if I use the conventional method,
ABC=123;export ABC
it doesn't solve the purpose. cuz when I restart the system the variables are gone.

Please help.

Yasir.
2 REPLIES 2
Peter Leddy_1
Esteemed Contributor
Solution

Re: Setting environment variables while using X Windows.

When you login to a desktop environment the system looks to the .dtprofile in your home directory. You can set your environment variables in this file or what I prefer to do is the following:

In the .dtprofile there should be a line like this

# DTSOURCEPROFILE=true

If you uncomment this line then your .profile will be read and you can place your environment variables in there.

HTH,

Peter
Rick Garland
Honored Contributor

Re: Setting environment variables while using X Windows.

By default, it is the $HOME/.dtprofile