Starting gnome-terminal in foreground?

Colin Law clanlaw at gmail.com
Fri Aug 12 09:54:58 UTC 2016


On 12 August 2016 at 09:48, Josef Wolf <jw at raven.inka.de> wrote:
> Hello,
>
> How would I start gnome-terminal so that it don't automatically background
> itself?
>
> For example, I'd like to have something like that:
>
>    #!/bin/sh
>    gnome-terminal -e wget http://some-host/some-large-tarball.tar.gz
>    echo "Done"
>
> The problem is, that gnome-terminal hands over the command to
> gnome-terminal-server and exits immediately. This effectively behaves as if
> gnome-termial would background itself and the echo command is
> executed immediately instead of waiting until the download is done

Why not just run wget directly rather than invoking a terminal window?

Colin




More information about the ubuntu-users mailing list