Posted: Mon 16 Jun 2014, 09:16 Post_subject:
How to gracefully close program without using wmctrl?
Wmctrl has the ability to close programs gracefully. When a program, e.g. geany, hasn't yet saved its data, the program will show a dialog and offer to save the data before finally closing.
This seems to be simple task and I was hoping that this can be done wiith a standard command line tool, without relying on wmctrl, but using kill or pkill with various signals will either kill immediately or not at all. Any ideas?