How to Find Out Which Desktop Environment You are Using? – It's FOSS

A Linux and Open Source Web Portal
Last updated By 35 Comments
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.
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:
For example, it shows that I am using GNOME desktop in Ubuntu 20.04:
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.
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:
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.
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.
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):
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.
As you can see, it shows that my system is using GNOME 3.36.
I hope you find this quick beginner tip useful. If you have questions or suggestions, please leave a comment below.
Like what you read? Please share it with others.
Filed Under: Tutorial
Creator of It’s FOSS. An ardent Linux user & open source promoter. Huge fan of classic detective mysteries ranging from Agatha Christie and Sherlock Holmes to Detective Columbo & Ellery Queen. Also a movie buff with a soft corner for film noir.
Why is that this command [echo $XDG_CURRENT_ENVIRONMENT] won’t work from the root (#) prompt? It returns blank.
But works well in from the ($) prompt.
Why ?
Because the said environment variable is configured in the bash profile of the normal user, not the root user.
I’m facing a problem in ubuntu
failed to enroll a new fingerprint
Hi, I installed Ubuntu 20.10. with Gnome 3.38.3 but can’t use my fingerprint. I don’t even have the setting in the users tab. I’m using the Lenovo IdeaPad 5 15 with the fingerprintreader: 27c6:55a2 Shenzhen Goodix.
I’m facing the same problem with my same laptop
ubuntu 20.4
Biometric means fingerprint? Newer GNOME versions allow to add fingerprints.
Thanks much Abhishek, you provide a lot of good information for me as a relative beginner
Happy to help people with Linux 🙂
Join 75,000 other Linux users and start your journey to become a better, informed desktop Linux user.
It’s FOSS is Part of chmod777 Media Tech (OPC) Pvt Ltd· Built on Genesis Framework and Powered by UpCloud
Session expired
Please log in again. The login page will open in a new tab. After logging in you can close it and return to this page.


We will be happy to hear your thoughts

Leave a reply

Compare items
  • Total (0)