[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to find out the current display manager?



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Mon, Jan 16, 2017 at 11:42:17AM -0500, kamaraju kusumanchi wrote:
> On Mon, Jan 16, 2017 at 4:42 AM,  <tomas@tuxteam.de> wrote:
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> >
> > On Sun, Jan 15, 2017 at 09:47:40PM -0500, kamaraju kusumanchi wrote:
> >> How can I find out the display manager currently running on a machine
> >> from the command line?
> >
> > Hm. How do you know there aren't two running? Or fifteen?
> 
> Thanks for the detailed reply, Tomas.
> 
> For the first round, I am happy if I can get the display manager from
> which the current user's session is initiated from.
> 
> Background on why I need this:
> I am developing a script[1] that gathers relevant system information
> depending on what issue a debian-user is facing [...]

That sounds pretty exciting :-)

One building brick (assuming Debian context) might be to start from the
dependencies of the virtual package manger:

 | tomas@rasputin:~$ aptitude show x-display-manager
 | No current or candidate version found for x-display-manager
 | Package: x-display-manager
 | State: not a real package
 | Provided by: gdm3, kdm, lightdm, lxdm, nodm, sddm, slim, wdm, xdm

Next step would be to infer the name of the running binary (might well
be some of them install several binaries in /usr/bin) and search for
that in the process list.

I ask myself whether there's some giveaway in its /proc/<pid> directory.

Regards
- -- tomás
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlh9N1MACgkQBcgs9XrR2kazEwCeMd/JEw3UCkRYuKQkXg4VZbUm
FJkAnRxEtXRe/BFNIvAlvx540KiuOIAM
=I716
-----END PGP SIGNATURE-----


Reply to: