How to disable popup "Close this terminal?" when closing terminal?
Solution 1:
In 16.04 you'll find that choice in dconf-editor. You can install it, if necessary, with
sudo apt install dconf-editor
Then go to
org -> gnome -> terminal -> legacy
and uncheck confirm-close
.
Solution 2:
You will have to install gconf-editor
first. Just open the terminal using Ctrl+Alt+T and type the following command:
sudo apt-get install gconf-editor
After that, hit Alt+F2 or open the Dash and type gconf-editor
and the configuration editor window will appear. Then you go to Apps→Gnome-terminal→global and uncheck the option confirm_window_close
.
Source