Forum > General
Local user environment variables
(1/1)
prema:
Hi all,
I have one problem. I'm about to write application that need to lunch specific programs that store their environment variables in the logged user .bashrc file. Installation of these programs can be different but all the time the path to them is written in the environment variable.
In my code I used GetEnvironmentVariable function to get this path. But unfortunately I'm not able to get it because this function get just global variables. Only if I run my application from the terminal I get the right path value otherwise empty string.
So my question is. Is there a way how to get environment variables for just logged user hidden in his shell config file?
Thanks a lot
Prema
Laksen:
I think .bashrc is a file that's run when you start a shell
I think .profile is what you're after
Navigation
[0] Message Index