Dumb Question....

Archived topics about LMDE 1 and LMDE 2
Locked
millpond
Level 3
Level 3
Posts: 178
Joined: Tue Jan 31, 2012 6:34 pm

Dumb Question....

Post by millpond »

Is there a simple way to query a terminal to find out what Window Manager one is in?

By default I boot to KDE, but when I have real work to do I boot to XFCE and logon as root.

I thought i could save some resources by killing off kdm there, but it shut x down, and startx took me into an unfamiliar window manager as root.

I dont really know the difference between cinnamon and mate - it looks kinda like Gnome, but I would like a script to be able to ID the WM so as to have a clue as to where i am!

On second thought its gotta be a gnome variant because its a pig, and doesnt flush junk as well as KDE.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Monsta
Level 10
Level 10
Posts: 3071
Joined: Fri Aug 19, 2011 3:46 am

Re: Dumb Question....

Post by Monsta »

Try the environment variable named DESKTOP_SESSION :)
millpond
Level 3
Level 3
Posts: 178
Joined: Tue Jan 31, 2012 6:34 pm

Re: Dumb Question....

Post by millpond »

Excellent:

env | grep -i DESKTOP_SESSION

Will always help me get my bearings.

Will put it in bash.bashrc
Monsta
Level 10
Level 10
Posts: 3071
Joined: Fri Aug 19, 2011 3:46 am

Re: Dumb Question....

Post by Monsta »

I think it's enough to write just $DESKTOP_SESSION in scripts, no grep required :)
Locked

Return to “LMDE Archive”