Re: Exiting Blackbox

2001-12-11 Thread Paul Kincaid
Wow, I never meant to cause such a firestorm! I never wanted to change the default behavior of BB, just wanted to see if there were any alternatives. How about this for a solution - kind of a combination of things that have been mentioned by others --- Is there a way to remove the default Exit

Re: Exiting Blackbox

2001-12-11 Thread Jamin W. Collins
On Mon, 2001-12-10 at 21:20, Paul Kincaid wrote: Is there a way to remove the default Exit from the Menu? Yea, just remove the entry from your menu file. Jamin W. Collins

Re: Exiting Blackbox

2001-12-11 Thread Eric Christian Carlsen
Along with the confirmation exit issue I have another question. Is it possible to set up a way to exit using the keyboard? Is there any command in bbkeys that will do this or any other way of going about it? Just thought I would ask Eric Carlsen [EMAIL PROTECTED]

Re: Exiting Blackbox

2001-12-11 Thread Jan Schaumann
Eric Christian Carlsen [EMAIL PROTECTED] wrote: Along with the confirmation exit issue I have another question. Is it possible to set up a way to exit using the keyboard? Is there any command in bbkeys that will do this or any other way of going about it? Just thought I would ask

Re: Exiting Blackbox

2001-12-11 Thread Tim Keating
On Tue, 11 Dec 2001, Eric Christian Carlsen wrote: Along with the confirmation exit issue I have another question. Is it possible to set up a way to exit using the keyboard? CTRL+ALT+BACKSPACE is the default keyboard shortcut to exit The X Window system. Seems to work with every window

Re: Exiting Blackbox

2001-12-11 Thread Dave Price
On Tue, Dec 11, 2001 at 10:25:47AM -0700, Tim Keating wrote: CTRL+ALT+BACKSPACE is the default keyboard shortcut to exit The X Window system. Seems to work with every window manager I've used. No it doesn't ask for confirmation. It also does NOT save changes to workspace(s) ... i.e. new

Re: Exiting Blackbox

2001-12-11 Thread Jeremy C. Reed
On Tue, 11 Dec 2001, Dave Price wrote: CTRL+ALT+BACKSPACE is the default keyboard shortcut to exit The X Window It also does NOT save changes to workspace(s) ... i.e. new ones added, renamed, etc. :-( Then this sounds like a bug. I am assuming that X would send a polite signal to blackbox

Re: Exiting Blackbox

2001-12-11 Thread Jamin W. Collins
On Tue, 2001-12-11 at 14:08, Jeremy C. Reed wrote: CTRL+ALT+BACKSPACE is the default keyboard shortcut to exit The X Window It also does NOT save changes to workspace(s) ... i.e. new ones added, renamed, etc. :-( Then this sounds like a bug. I am assuming that X would send a polite

Re: Exiting Blackbox

2001-12-11 Thread Jan Schaumann
Jamin W. Collins [EMAIL PROTECTED] wrote: On Tue, 2001-12-11 at 14:08, Jeremy C. Reed wrote: CTRL+ALT+BACKSPACE is the default keyboard shortcut to exit The X Window It also does NOT save changes to workspace(s) ... i.e. new ones added, renamed, etc. :-( Then this sounds like a

Re: Exiting Blackbox

2001-12-11 Thread Kyle Donaldson
On Tue, 11 Dec 2001, Jan Schaumann wrote: [snip] Now, if blackbox receives any of SIGSEGV,SIGFPE, SIGINT or SIGTERM, it calls this shtudonw-function, just as if exit had been selected from the menu. It would therefore stand to reason that if you CTRL-ALT-BSPC X, bb should receive a

Re: Exiting Blackbox

2001-12-11 Thread Sean 'Shaleh' Perry
Now, if blackbox receives any of SIGSEGV,SIGFPE, SIGINT or SIGTERM, it calls this shtudonw-function, just as if exit had been selected from the menu. It would therefore stand to reason that if you CTRL-ALT-BSPC X, bb should receive a SIGTERM and save the current configuration. If it

Re: Exiting Blackbox

2001-12-11 Thread scott
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Monday 10 December 2001 21:24, Sean 'Shaleh' Perry wrote: I do not intend to make bb the all singing and dancing easy to use wonder wm. Hell yes to that. :) - -- [scott] :: ein kalter Tod für den sprecher von Lügen -BEGIN PGP

Re: Exiting Blackbox

2001-12-11 Thread Wilbert Berendsen
Today at 1:25pm, Sean 'Shaleh' Perry said: Now, if blackbox receives any of SIGSEGV,SIGFPE, SIGINT or SIGTERM, it calls this shtudonw-function, just as if exit had been selected from the menu. It would therefore stand to reason that if you CTRL-ALT-BSPC X, bb should receive a SIGTERM

Re: Exiting Blackbox

2001-12-11 Thread Sean 'Shaleh' Perry
On 11-Dec-2001 Wilbert Berendsen wrote: Today at 1:25pm, Sean 'Shaleh' Perry said: Now, if blackbox receives any of SIGSEGV,SIGFPE, SIGINT or SIGTERM, it calls this shtudonw-function, just as if exit had been selected from the menu. It would therefore stand to reason that if you

Re: Exiting Blackbox

2001-12-11 Thread Jan Schaumann
Sean 'Shaleh' Perry [EMAIL PROTECTED] wrote: On 11-Dec-2001 Wilbert Berendsen wrote: I believe the signal it sends is X is not here die now. Which bb can not catch. I think the signal is SIGPIPE (13, Broken pipe), Blackbox just terminates without saving anything. Not sure it

Re: Exiting Blackbox

2001-12-11 Thread scott
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 You could setup bbkeys to ExecCommand {xterm -e ~/bin/bbexit.pl} and have a script ask for confirmation (See the email i just sent with a hackish little perl script) On Tuesday 11 December 2001 11:31, Eric Christian Carlsen wrote: Along with the

Re: Exiting Blackbox

2001-12-11 Thread scott
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tuesday 11 December 2001 17:57, Sean 'Shaleh' Perry wrote: On 11-Dec-2001 Wilbert Berendsen wrote: Today at 1:25pm, Sean 'Shaleh' Perry said: Now, if blackbox receives any of SIGSEGV,SIGFPE, SIGINT or SIGTERM, it calls this

Re: Exiting Blackbox

2001-12-11 Thread Sean 'Shaleh' Perry
Is there a specific signal that could be sent to Blackbox and make Blackbox do exactly the same thing as if a user had clicked [exit] from within Blackbox ? case SIGSEGV: case SIGFPE:

Re: Script to exit confirm (was Re: Exiting Blackbox)

2001-12-11 Thread Jan Schaumann
scott [EMAIL PROTECTED] wrote: For anyone that's interested... here's a perl script to show how easy it is to exit-confirm. Call this script in a term window when you want to exit, and it'll ask for a Y or an N (case insensitive) no is default, so hitting enter will not kill blackbox)

Re: Exiting Blackbox

2001-12-11 Thread Kyle Donaldson
(Oh, like I can resist making the argument worse...) Here's a quick Gtk+ program that confirms BB's exit. It sends signal 15 (SIGTERM), which BB catches and properly exits itself, most likely bringing down X with it. http://www.pointlessmovement.net/hacks/tbbexit.tar.gz --gile -- It's

Re: Exiting Blackbox

2001-12-11 Thread Greg Gilbert
* Tim Keating ([EMAIL PROTECTED]) wrote: CTRL+ALT+BACKSPACE is the default keyboard shortcut to exit The X Window system. Seems to work with every window manager I've used. No it doesn't ask for confirmation. CTRL+ALT+BACKSPACE will kill the X session, this might not be a problem in

Re: Exiting Blackbox

2001-12-10 Thread Jan Schaumann
Sean 'Shaleh' Perry [EMAIL PROTECTED] wrote: The menu represents a chunk of code and there are programs that will display a menu so maybe I should remove the menu from blackbox? As a matter of fact, I would like that a lot. I don't use the menu _ever_, so if it could be a compile-time

Re: Exiting Blackbox

2001-12-10 Thread Steve Clarke
You're joking.. right? ;P At 09:23 AM 10/12/2001 -0500, you wrote: Sean 'Shaleh' Perry [EMAIL PROTECTED] wrote: The menu represents a chunk of code and there are programs that will display a menu so maybe I should remove the menu from blackbox? As a matter of fact, I would like that a

Re: Exiting Blackbox

2001-12-10 Thread Jan Schaumann
Steve Clarke [EMAIL PROTECTED] wrote: At 09:23 AM 10/12/2001 -0500, you wrote: Sean 'Shaleh' Perry [EMAIL PROTECTED] wrote: The menu represents a chunk of code and there are programs that will display a menu so maybe I should remove the menu from blackbox? As a matter of fact, I

Re: Exiting Blackbox

2001-12-10 Thread Marc Wilson
On Mon, Dec 10, 2001 at 10:11:22AM -0500, Jan Schaumann wrote: [jschauma@www jschauma]$ cat bin/startbb deleted xhost +localhost Very bad. Whatever problem you think this is solving, find another way to solve it other than punching holes in security. ^_^ -- Marc Wilson [EMAIL PROTECTED]

Re: Exiting Blackbox

2001-12-10 Thread Jan Schaumann
Marc Wilson [EMAIL PROTECTED] wrote: On Mon, Dec 10, 2001 at 10:11:22AM -0500, Jan Schaumann wrote: [jschauma@www jschauma]$ cat bin/startbb deleted xhost +localhost Very bad. Whatever problem you think this is solving, find another way to solve it other than punching holes in

Re: Exiting Blackbox

2001-12-10 Thread Mark Weinem
However a kneejerk reaction of that will just make it bigger and there are other ways to do it need to be avoided. Not a kneejerk reaction but just good arguments. What's wrong with them? And many bb users will not want confirmation dialogs. So make them available via patch or tool and all

Re: Exiting Blackbox

2001-12-10 Thread Mark Weinem
Hi Sean! On Sun, 09 Dec 2001, Sean 'Shaleh' Perry wrote: Welcome to the blackbox world where a simple feature request leads to 8 different ways to skin the proverbial cat that do not involve changing blackbox. Will you really take care of the end users? Only two users want an exitconfirm

Re: Exiting Blackbox

2001-12-10 Thread Andy Kopciuch
On Monday 10 December 2001 17:42, Mark Weinem wrote: Hi Sean! On Sun, 09 Dec 2001, Sean 'Shaleh' Perry wrote: Welcome to the blackbox world where a simple feature request leads to 8 different ways to skin the proverbial cat that do not involve changing blackbox. Will you really take

Re: Exiting Blackbox

2001-12-09 Thread scott
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Saturday 08 December 2001 22:21, Joshua Swink wrote: Make sure there is still a way to exit without confirmation. Adding a menu function like 'exitconfirm' and making it the default might be appropriate. [exitconfirm] (Quit Blackbox)

Re: Exiting Blackbox

2001-12-09 Thread Andy Kopciuch
On Saturday 08 December 2001 20:21, you wrote: On Sat, Dec 08, 2001 at 07:18:10PM -0700, Andy Kopciuch wrote: 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

Re: Exiting Blackbox

2001-12-09 Thread Sean 'Shaleh' Perry
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. From my brief knowledge of the code base, I don't think it would be very hard to

Re: Exiting Blackbox

2001-12-09 Thread Wilbert Berendsen
Yesterday at 6:17pm, Andy Kopciuch said: On Saturday 08 December 2001 20:21, you wrote: On Sat, Dec 08, 2001 at 07:18:10PM -0700, Andy Kopciuch wrote: 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

Re: Exiting Blackbox

2001-12-09 Thread Sean 'Shaleh' Perry
There might be a problem with that. There is currently no code in blackbox for displaying any dialog. So the confirm dialog would add a lot of code to blackbox. Not really. bb already knows how to create a window, some text and a button. It just has to display all three at once in a

Re: Exiting Blackbox

2001-12-08 Thread 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

Re: Exiting Blackbox

2001-12-08 Thread Joshua Swink
On Sat, Dec 08, 2001 at 07:18:10PM -0700, Andy Kopciuch wrote: 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

Re: Exiting Blackbox

2001-12-08 Thread Paul Kincaid
The big problem I am having is that there is a default Exit at the bottom of the menu that is not in the blackbox-menu config file. I've tried adding an exit within bbconf, thinking I could create a script that would do the prompting, but I cannot delete that default Exit. Is there something I