Different operating systems make use of a different desktop environment in which they operate. A desktop environment refers to the uniform layout or the graphical user interface (GUI) of a system.
Here at LinuxAPT, we shall look into how to find the current desktop environment on a Linux Mint 20 system along with its version.
To detect the current desktop environment of a Linux Mint 20 system, you need to execute the command that follows in your system's terminal:
$ echo $XDG_CURRENT_DESKTOP
This will display the current desktop environment which in our case is X-Cinnamon.
Now, if you also wish to find out the version of your current desktop environment in which your Linux Mint 20 system is operating, then you will need to launch the Mint Menu by clicking on its icon present on the taskbar. After that, you need to search for the system settings and click on the appropriate result.
Then, in the System Settings window, you need to scroll all the way down to the Hardware-related settings and then click on the System Info.
In the System Info dialogue box, you will be able to find the current desktop environment version.
This article covers the way to detect the current desktop environment of a Linux Mint 20 system as well as the method of finding the version of the current desktop environment. In fact, there are multiple options available to identify the running desktop environment on a Linux desktop.
How to Detect the Desktop Environment in Linux Command Line ?
1. First, execute the following command to check the name of the Desktop Environment:
$ echo $XDG_CURRENT_DESKTOP
2. The following command will show you the processes running for XFCE or KDE or GNOME desktops:
$ ps -e | grep -E -i "xfce|kde|gnome"