How can I know the display manager it's being used?

15,101

Solution 1

You can follow command cat /etc/X11/default-display-manager. You will get response like /usr/sbin/lightdm. It looks like:

$ cat /etc/X11/default-display-manager
/usr/sbin/gdm3

Solution 2

The easiest and most painless way to view your environment is with the command:

env | grep XDG

Another choice is:

pstree

which will show a list of all running processes including the display manager. pstree should be installed as part of the standard distribution but if it isn't:

sudo apt-get install pstree

You can obtain more specific information about the windows and desktop environment with the following commands:

echo $XDG_CURRENT_DESKTOP

and

wmctrl -m

wmctrl will show you the name of the windows manager. You may have to install it first. wmctrl supports a rich array of fun switches.

sudo apt-get install wmctrl

These commands (except for echo $environment) all have man pages.

Share:
15,101
araujoyuri
Author by

araujoyuri

Updated on September 18, 2022

Comments

  • araujoyuri
    araujoyuri over 1 year

    I'm currently with Ubuntu GNOME 17.04 installed on my laptop and I'm trying to discover which display manager(DM) it's being used. Already tried dpkg reconfigure with lightdm, mdm and lxdm, neither of them worked.

    • koleygr
      koleygr almost 7 years
      Not sure (debian user) but a gdm3 is possible (called gnome-display-manager)... Edit: See here: askubuntu.com/questions/789314/… it seems to be your default display manager
  • koleygr
    koleygr almost 7 years
    also a cat /etc/X11/default-display-manager would probably be easier for this