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

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

Check Desktop Environment

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 necessary 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.

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



Source link

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.