Results 1 to 4 of 4
Kind of an odd question, but I'm looking for the best way to identify what distro the user is running and what the desktop environment is running. I'm building some ...
- 07-18-2010 #1Just Joined!
- Join Date
- Jul 2010
- Posts
- 1
indentifying desktop enviro
Kind of an odd question, but I'm looking for the best way to identify what distro the user is running and what the desktop environment is running. I'm building some pipeline tools for a visual effects studio and need some generic commands for passing paths to the user's file manager from within Maya and Nuke. The workstations I have access to are FC12 with xfce4 so for that I'd pass a system command :
I've been identifying Fedora workstations with:Code:("thunar "+$path)Is there a command to identify what the current window manager is? Preferably something generic that'll work on the other distros as well. Thanks in advanceCode:# cat /etc/issue
- 07-19-2010 #2
I'm not sure if there's an easy command that will do it for you but you could deffinately do the following to see whether or not gnome is running on the system:
Or you could run the following just to see if it is installed regardless if it is running:Code:ps aux | grep gnome-session
hope that helps you at all.Code:ls /etc | grep gnome*
- 07-21-2010 #3Just Joined!
- Join Date
- Mar 2010
- Posts
- 79
Most environments and wm's i know are to be found under /usr/bin and contain either a "session" or a "start".
So if you do a "ps aux | grep session" it might help you (There should be, of course a command to exactly figure it out, but i don't know it)
- 07-22-2010 #4
For identifying the distro, there is usually a file /etc/*-release which tells you what is running.
More info here.


Reply With Quote