I need to programatically determine which window manager is running, on Linux.
Pseudocode for how it would be used:
if(WindowManagerOfOS.isKDE()){
do.anyThing();
}
How can I do this? Is it even possible?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
returns
"GNOME"on my machine. Try it out on KDE-based box.See also