I answered on Ask Ubuntu Quit all instances of gnome-terminal
via a command but as you all can read gnome-terminal
didn't seems to have a SIG
call I could use to simulate this "Close" event. So this lead me to ask, is there a way in GNOME/KDE/LXDE/{put your window/desktop manager/environment here} to simulate the "Click in close button" event? I have read different questions that could have any relation to this, but don't answer this.
What I'm looking is for a global command (if exist) to do this in different scenarios. If none exist, please explain how the "Close" button works.
Posible uses:
- I open a set of applications for a determinated task, and want to close all of them (when no longer used) in a single stroke/command without suppress any You want to save your work? alerts.
- Close all the
gnome-terminal
instances but warn me if there is child process still running. - Nothing else comes into my mind right now...