posted 19 years ago
Hi,
I need to find out (using a Shell script/ C program), whether GNOME or KDE is running as the current Desktop manager.
Is there a way to accomplish this? There are some environment variables specific to these ( for example GNOME_DESKTOP_SESSION_ID and GDMSESSION), but I am not sure about the significance of these variables and whether they will always be set with some value?
Will appreciate any thoughts/help on this.
Thanks.
Basu.