how to know if I'm using xterm or gnome-terminal?
nalin at redhat.com
Tue Feb 23 20:41:32 UTC 2010
On Tue, Feb 23, 2010 at 04:52:32PM -0300, Germán A. Racca wrote:
> Hi all:
> How to know if I'm using an xterm or a gnome-terminal from command line?
> The output of "echo $TERM" is "xterm" from both of them.
> How to know?
James Wilkinson already outlined why most environment variables probably
shouldn't be trusted, so I'll suggest checking the output of
xprop -id $WINDOWID WM_CLASS
More information about the users