which desktop environment
Does anyone know of a typical command that outputs the active desktop environment like kde or gnome?
I googled around and couldn't find anything. Thanks in advance |
depending on your distro, check the .xinitrc file in your home folder. that will show which wm is running
|
I couldn't seem to locate this file, but I'm wanting to add this command to a script, so it would be extremely beneficial if there was a command to output the desktop environment, but if theres not one, I could always have the script search for the file and then read its contents.
|
I could possibly use:
TEST=`ps -ax | grep "kdesktop"` if [ "$TEST" ]; ... if checking for kde. but what would I use for gnome? |
All times are GMT -5. The time now is 12:16 PM. |