You are not logged in.
Pages: 1
Hello Forum !
Trying to increase my Exit-(Pipe-)Menu a little,I got stuck:
Window closing : How can I force programs which have unsaved,modified files open to interupt the Exit-script ? Or where can I get such information on my system ?
Session saving : Besides the windows,what else should/could be saved in this context ?
Last edited by errorist (2012-10-27 09:30:58)
Offline
A little progress: Seems I have to close the windows manually(wmctrl) before initiating the shutdown.
Then the dialog for saving or not before shutdown appears.
Last edited by errorist (2012-10-27 11:09:35)
Offline
Well behaving applications should come up with a saving dialog when they are closed by a window manager and they have buffers that were changed but not yet written out to disk.
I know for sure that Emacs does this.
Which application(s) do you suspect of not doing that?
bootinfoscript - emacs primer - I ♥ #!
Offline
Didn't tested much,but the dbus-shutdown/reboot ignores Geany and LibreOffice,and I think,all others too.
My new approach is to first close the windows with wmctrl-close,but then the loop ends after the interuption and lefts windows open.
So I have to newly catch the remaining windows,looping wmctrl-close again,and again,...,up to the last window is closed.
Offline
Have to bump this a little,this here is left :
Session saving : Besides the windows, what else should/could be saved in this context ?
I'm not sure if only (re)storing the windows and their geometry (and the decos) of the last session
can be called a real session-storing, or if its only a window-storing ?
What else should be saved at session ending, apart the windows ?
Greetings !
Offline
Pages: 1
Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.