Page 1 of 1

problem when replace xterm by gnome-terminal

Posted: Sun Jan 29, 2012 6:54 pm
by trif
sorry for my poor english
I use ubuntu 11.10 as operating system and firefox as web browser.
In Flahgot, I choose wget as the downloading tool.
However, it calls xterm instead of gnome-terminal to run wget.
I studied for a while, and I found the sh code in flashgot-*.fgt(automatically established with every downloading project by flashgot)

Code: Select all

#!/bin/sh
if [ "$1" = "" ]; then
  if [ "$COLORTERM" = "gnome-terminal" ] && which gnome-terminal >/dev/null 2>&1; then
so I had several test, but the result confused me.
In gnome-terminal:

Code: Select all

$ echo $COLORTERM
gnome-terminal
$ sh
$ echo $COLORTERM
gnome-terminal
$ 
In xterm:

Code: Select all

$ echo $COLORTERM
gnome-terminal
$ sh
$ echo $COLORTERM

$