problem when replace xterm by gnome-terminal

Ask for help about FlashGot, no registration needed to post
Post Reply
trif
Posts: 1
Joined: Sun Jan 29, 2012 6:42 pm

problem when replace xterm by gnome-terminal

Post 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

$ 
Mozilla/5.0 (Ubuntu; X11; Linux x86_64; rv:9.0.1) Gecko/20100101 Firefox/9.0.1
Post Reply