I was wondering if it is possible to sort of restart gnome-terminal
from itself? What I mean by that is, is there a command which I can use to tell gnome-terminal
to close and then immediately relaunch itself? I have tried running:
exit && gnome-terminal
But that doesn't work because after it has exited it can't launch itself from itself, so I was wondering if there is another command which will close it but also instruct another program to then immediately open it again?
OS Information:
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 15.10
Release: 15.10
Codename: wily
Flavour: GNOME
GNOME Version: 3.18
Package Information:
gnome-terminal:
Installed: 3.18.2-1ubuntu2~wily1
Candidate: 3.18.2-1ubuntu2~wily1
Version table:
*** 3.18.2-1ubuntu2~wily1 0
500 http://ppa.launchpad.net/gnome3-team/gnome3-staging/ubuntu/ wily/main amd64 Packages
100 /var/lib/dpkg/status
3.16.2-1ubuntu4 0
500 http://archive.ubuntu.com/ubuntu/ wily/main amd64 Packages
gnome-terminal && exit
? – Byte Commander Dec 02 '15 at 19:36bash -c "sleep 2 && gnome-terminal" & exit
then? – Byte Commander Dec 02 '15 at 19:40gnome-terminal-server
... Although it opens the second window after the first closes. – Byte Commander Dec 02 '15 at 19:51& disown
ing it. Some terminal programs can behave a bit weirdly when starting each other directly though, see here – Wilf Dec 02 '15 at 20:45