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.
Dumb Question....
Forum rules
LMDE 2 has reached end of support as of 1-1-2019
LMDE 2 has reached end of support as of 1-1-2019
Dumb Question....
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.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Re: Dumb Question....
Try the environment variable named DESKTOP_SESSION
Re: Dumb Question....
Excellent:
env | grep -i DESKTOP_SESSION
Will always help me get my bearings.
Will put it in bash.bashrc
env | grep -i DESKTOP_SESSION
Will always help me get my bearings.
Will put it in bash.bashrc
Re: Dumb Question....
I think it's enough to write just $DESKTOP_SESSION in scripts, no grep required