SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2012-10-26 16:52:23

errorist
#! Member
Registered: 2012-05-24
Posts: 94

Openbox Exit - Menu

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

Be excellent to each other!

#2 2012-10-27 10:54:44

errorist
#! Member
Registered: 2012-05-24
Posts: 94

Re: Openbox Exit - Menu

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

#3 2012-10-27 12:13:02

xaos52
The Good Doctor
From: Planet of the @s
Registered: 2011-06-24
Posts: 4,595

Re: Openbox Exit - Menu

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?

Offline

#4 2012-10-27 13:07:22

errorist
#! Member
Registered: 2012-05-24
Posts: 94

Re: Openbox Exit - Menu

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

#5 2012-10-31 13:31:37

errorist
#! Member
Registered: 2012-05-24
Posts: 94

Re: Openbox Exit - Menu

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

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo