15

This question already has an answer here:

The only Desktop Environment I ever used was Xfce, now for sheer curiosity, I have installed Kali Linux. I have clicked here and there onto the Desktop in vain hope to get an Info about the Desktop Environment itself, so I asked myself is there a standard procedure to check the name of the Desktop Environment from the command-line, I guess maybe something like:

ps -e | grep xxx

but then, I do not know what I could try to grep.

I just mentioned Kali Linux as an example, I would like to know how to do it in general.

marked as duplicate by phk, Jeff Schaller, Kusalananda, a CVn, Anthon May 19 '17 at 21:44

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • Which desktop environment is running, or which desktop environments are installed? – Gilles May 19 '17 at 21:42
28

To check the name of the Desktop Environment from the command line, you can use the following command:

echo $XDG_CURRENT_DESKTOP

or

ls /usr/share/xsessions/

Or based on the question:

ps -e | grep -E -i "xfce|kde|gnome"

Sample output (kde):

 kdevtmpfs
 start_kdeinit
 kdeinit4
 kded4
 polkit-kde-auth
  • 2
    brilliant brilliant brilliant, really helpful – sharkant May 19 '17 at 11:46

Not the answer you're looking for? Browse other questions tagged or ask your own question.