Here's How to Find Out Which Desktop Environment You are Using

Wondering which desktop environment are you using on your Linux system? Here's how to find our desktop environment and its version information.
Warp Terminal

If you are a new Linux user and seeking help in one of the Linux forums, you may be asked this question:

“Which desktop environment are you using?”

You have an idea about what a desktop environment is but how do you know which one are you using? I’ll tell you how to find it out. I’ll show the command line method first because that is applicable to all kind of Linux distributions. I’ll also show the graphical way of getting this information.

Check which desktop environment you are using

You can use the echo command in Linux to display the value of XDG_CURRENT_DESKTOP variable in the terminal.

Open the terminal and copy paste this command:

echo $XDG_CURRENT_DESKTOP

For example, it shows that I am using GNOME desktop in Ubuntu 20.04:

abhishek@itsfoss:~$ echo $XDG_CURRENT_DESKTOP 
ubuntu:GNOME

While this command quickly tells you which desktop environment is being used, it doesn’t give any other information.

Knowing the version of desktop environment (also called DE) could be important in some cases. Each new version of a software brings new features or removes some. GNOME 3.36 introduces a ‘Do Not Disturb’ option to toggle off all the desktop notifications.

Suppose you read about this new Do Not Disturb feature. You verify that you are using GNOME and yet you don’t see this option in your GNOME desktop. If you could check the GNOME desktop version you have installed on your system, that could make things clear for you.

I’ll show you the commands to check the desktop environment’s version first because you can use it in any Linux, running desktop environment.

How to get desktop environment version

Unlike getting the name of desktop environment. getting its version number is not straightforward because there is no standard command or environment variable that could give this information.

One way to get the desktop environment information in Linux is by using a tool like Screenfetch. This command line tool displays the logo of your Linux distribution in ascii format along with a few basic system information. Desktop environment version is one of them.

In Ubuntu based distributions, you can install Screenfetch by enabling Universe repository and then using this command:

sudo apt install screenfetch

For other Linux distributions, please use your system’s package manager to install this program.

Once installed, simply type screenfetch in the terminal and it should show the desktop environment version along with other system information.

Check Desktop Environment Version
Check Desktop Environment Version

As you can see in the above image, my system is using GNOME 3.36.1 (basically GNOME 3.36). You can also check the Linux kernel version and other details here.

Please keep in mind that it is not guaranteed that Screenfetch will display the desktop environment version. I checked its source code and it has lots of if-else code to get the version information from a number of sources and parameters in various desktop environments. If it can find nothing on version, it just displays the DE name.

Using GUI to check desktop environment version

Almost all desktop environments provide basic system details in their Settings-About section.

The one major problem is that most DEs look different and thus I cannot show the exact steps for each of them. I am going to show it for GNOME and I let you discover it in your desktop.

So, search for Settings in the menu (press Windows key and search):

Applications Menu Settings
Search for Settings application

In here, go to the bottom to find the About section. Click on it and you should have the desktop environment along with its version.

Check Desktop Environment Ubuntu
Check Desktop Environment in Ubuntu

As you can see, it shows that my system is using GNOME 3.36.

Which DE are you using?

Similarly, you can find out whether you are using Wayland or Xorg display server.

How to Check if You are Using Wayland or Xorg?
There is a technical transition taking place in the desktop Linux world. Most mainstream distros have started to move to the Wayland display server by default. But not all legacy components are compatible with the newer Wayland. They work only with the good old X or Xorg display server.…

I hope you find this quick beginner tip useful. If you have questions or suggestions, please leave a comment below.

About the author
Abhishek Prakash

Abhishek Prakash

Created It's FOSS 11 years ago to share my Linux adventures. Have a Master's degree in Engineering and years of IT industry experience. Huge fan of Agatha Christie detective mysteries 🕵️‍♂️

Become a Better Linux User

With the FOSS Weekly Newsletter, you learn useful Linux tips, discover applications, explore new distros and stay updated with the latest from Linux world

itsfoss happy penguin

Great! You’ve successfully signed up.

Welcome back! You've successfully signed in.

You've successfully subscribed to It's FOSS.

Success! Check your email for magic link to sign-in.

Success! Your billing info has been updated.

Your billing was not updated.