problem when replace xterm by gnome-terminal
Posted: Sun Jan 29, 2012 6:54 pm
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)
so I had several test, but the result confused me.
In gnome-terminal:
In xterm:
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; thenIn gnome-terminal:
Code: Select all
$ echo $COLORTERM
gnome-terminal
$ sh
$ echo $COLORTERM
gnome-terminal
$
Code: Select all
$ echo $COLORTERM
gnome-terminal
$ sh
$ echo $COLORTERM
$