How to know which desktop environment are being used from command line?

Solution In Progress - Updated -

Issue

How do I know which desktop environment (GNOME, KDE, etc.) are being used from command line?

Environment

Red Hat Enterprise Linux 7

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In