How can I close multiple instances of Gedit windows through the command line?
Some of the windows may contain changes to documents. So, I would like to be prompted to save them or not.
If I use pkill gedit
it will simply kill all instances without prompting to save changes.
Background info: Often, I have tons of windows open over multiple workspaces. Some of them are Gedit windows with notes. Thus, when running shutdown -h now
shutdown will block because some windows contain changes to files or unsaved notes. Saving all instances with changes would prevent me from inspecting and closing all windows one by one.