I want to check which Window Manager the user is using (like GNOME or KDE etc.). How do I do that?
You can't. There is no central place where a program registers itself to say "hi, I'm the window manager".
For instance, I'm running xmonad. I simply start this by calling xmonad in my ~/.xsession file along with a couple of other programs to have it start when I login. You cannot really detect that.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With