// This file displays the GDMSESSION environment variable // Try with others if you want, you know how to now #include #include #include #include int main( int argc, char **argv, char ** envp) { while(*envp != NULL) { if(strstr(*envp, "GDMSESSION") != NULL) printf("%s\n", *envp); *envp++; } }