I notice Debian uses linux for the console, the TERM variable is rxvt when running rxvt, xterm when running xterm, and so on.
But I didn't notice what it is set to in Debian when launching a program in X from a menu. Of course, Debian is just being used as an example and not a must-have rule.
I am curious, and will look and see when I get in tonight.