Circa 2001-Dec-08 19:18:10 -0700 dixit Andy Kopciuch:
: On Saturday 08 December 2001 19:04, you wrote:
: > On Sat, Dec 08, 2001 at 06:00:56PM -0500, Paul Kincaid wrote:
: > > I'm looking for a way that if you select "Exit" from the Blackbox Menu
: > > that you are prompted to exit rather than it just killing everything and
: > > kicking me out to the console. You don't know how many times I have
: > > accidentially exited, killing everything that I was doing....
: >
: > I've always had something such as:
: >
: > [submenu] (Quit!) {Really quit?}
: > [restart] (Restart Blackbox)
: > [exit] (Quit Blackbox)
: > [end]
: >
: > Just to make it slightly harder to accidentally quit.
:
: Nice. That does work, but it is a hack to something that I think
: should be in blackbox. It is pretty a standard programming practise
: to prompt the user before something like this, in my experience
: anyway.Of course, the way some folks handle this is not to exit the X session when the window manager exits, but rather to use a different program as the longest-lived client. For example, some folks have the following as their ~/.xsession (or ~/.xinitrc): #!/bin/sh blackbox & exec xlogo -iconic Then, your session only exits when you kill xlogo. Other folks use xconsole, or 'xterm -ls' or something. I myself use xsession for this purpose: ftp://ftp.x.org/contrib/applications/xsession-1.1.README ftp://ftp.x.org/contrib/applications/xsession-1.1.tar.gz If i allow xsession to start blackbox, then stdout and stderr from the window manager (and from all the programs it starts) goes to xsession's session log pane, where i can see it. xsession can also start alternate window managers. You might find similar or more useful functionality in guichooser: http://freshmeat.net/projects/guichooser/ Also, you might prefer the 'xsm' session manager that comes with X11R6. XFree86 has an accompanying man page ('man xsm'). Many of these techniques apply to most or all window managers, not just blackbox. -- jim knoble | [EMAIL PROTECTED] | http://www.pobox.com/~jmknoble/ (GnuPG fingerprint: 31C4:8AAC:F24E:A70C:4000::BBF4:289F:EAA8:1381:1491)
msg04171/pgp00000.pgp
Description: PGP signature
