LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 04-12-2005, 06:18 PM   #1
bendeco13
Member
 
Registered: Oct 2004
Distribution: Fedora 7
Posts: 232

Rep: Reputation: 30
Question which desktop environment


Does anyone know of a typical command that outputs the active desktop environment like kde or gnome?
I googled around and couldn't find anything.

Thanks in advance
 
Old 04-12-2005, 06:22 PM   #2
MACSRULE
Member
 
Registered: Apr 2004
Distribution: Gentoo 2004.1
Posts: 56

Rep: Reputation: 15
depending on your distro, check the .xinitrc file in your home folder. that will show which wm is running
 
Old 04-12-2005, 06:26 PM   #3
bendeco13
Member
 
Registered: Oct 2004
Distribution: Fedora 7
Posts: 232

Original Poster
Rep: Reputation: 30
I couldn't seem to locate this file, but I'm wanting to add this command to a script, so it would be extremely beneficial if there was a command to output the desktop environment, but if theres not one, I could always have the script search for the file and then read its contents.
 
Old 04-12-2005, 06:46 PM   #4
bendeco13
Member
 
Registered: Oct 2004
Distribution: Fedora 7
Posts: 232

Original Poster
Rep: Reputation: 30
I could possibly use:

TEST=`ps -ax | grep "kdesktop"`
if [ "$TEST" ];
...

if checking for kde.
but what would I use for gnome?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with Desktop environment plato399 Linux - Newbie 2 10-21-2005 08:41 PM
Which desktop environment do you use? dinolinux General 13 10-01-2005 03:10 AM
What's the best Desktop Environment? Mathijs Linux - Software 2 04-23-2005 12:26 PM
which desktop environment? rgiggs Mandriva 2 04-09-2004 08:47 PM
Which Desktop Environment You Use? xoros Linux - General 43 10-21-2003 06:04 AM


All times are GMT -5. The time now is 01:00 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration