Dumb Question....

Dumb Question....

Postby millpond on Mon Apr 22, 2013 2:01 am

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.
millpond
Level 2
Level 2
 
Posts: 60
Joined: Tue Jan 31, 2012 6:34 pm

Linux Mint is funded by ads and donations.
 

Re: Dumb Question....

Postby Monsta on Mon Apr 22, 2013 3:44 am

Try the environment variable named DESKTOP_SESSION :)
Monsta
Level 8
Level 8
 
Posts: 2460
Joined: Fri Aug 19, 2011 3:46 am

Re: Dumb Question....

Postby millpond on Mon Apr 22, 2013 12:44 pm

Excellent:

env | grep -i DESKTOP_SESSION

Will always help me get my bearings.

Will put it in bash.bashrc
millpond
Level 2
Level 2
 
Posts: 60
Joined: Tue Jan 31, 2012 6:34 pm

Re: Dumb Question....

Postby Monsta on Mon Apr 22, 2013 1:27 pm

I think it's enough to write just $DESKTOP_SESSION in scripts, no grep required :)
Monsta
Level 8
Level 8
 
Posts: 2460
Joined: Fri Aug 19, 2011 3:46 am


Return to Others

Who is online

Users browsing this forum: No registered users and 0 guests