Re: Guessing environment variables set origin

2009-09-12 Thread Markus Hitter
Am 11.09.2009 um 16:02 schrieb Yguaratã C. Cavalcanti: is there any way to guess if a environment variable was set by system of if it was defined by the configuration files? Well, where exactly do you draw the line between system and configuration file? Ubuntu, as installed from scratch,

Re: Guessing environment variables set origin

2009-09-12 Thread Yguaratã C . Cavalcanti
I forgot something in the initial message, sorry. I would like to guess when a variable was defined from a system configuration file, like /etc/profile, or if it was defined by a user configuration file, such as ~/profile. Is it clear now? Actually, i am building a GUI application, using pygtk,

Re: Guessing environment variables set origin

2009-09-12 Thread Markus Hitter
Am 12.09.2009 um 17:28 schrieb Yguaratã C. Cavalcanti: I would like to guess when a variable was defined from a system configuration file, like /etc/ profile, or if it was defined by a user configuration file, such as ~/profile. One possible way is to simply remove those user configuration

Guessing environment variables set origin

2009-09-11 Thread Yguaratã C . Cavalcanti
Hi guys, is there any way to guess if a environment variable was set by system of if it was defined by the configuration files? I imagined that i could to this by parsing some files such as /etc/profile or ~/profile, for example. However it would require a complete bash script parser, i guess.