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 from the Menu?  If there is
a way to remove that, I could write a simple Perl that would do the
prompting.  Also, this could leave open the door for a bbexit to be
written in the future, if more people would like this.

This would allow anyone, like me, who wants to have a prompt (and for a
while, we must figureout a way to do it -- which I'll gladly share my
Perl script once I write it) but leave the default Exit behavior for
those who don't need this.

Thanks for all the ideas,
Paul

On Mon, 2001-12-10 at 20:36, Andy Kopciuch wrote:
 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 care of the end users? Only two users want an
  exitconfirm option (Andy and yourself). Seems the rest of us does not!
 
 
 Please read all relevant emails before speaking for me next time.  For the 
 record I never requested this feature.  Sean never volunteered this feature.  
 I think it is also unfair to speak for  the rest of us as well.
 
 A user posted this request to this list, several people posted possible 
 solutions, I pointed out one, and what I saw as pros and cons to several 
 different implementations.  I have had a mild conversation with Sean about 
 it, being as he has taken the reigns of development.  
 
 Not once did I ever state which way to go with, and not once has Sean ever 
 stated which path will be persued.
 
 
 I click on the exit ... when I want to exit.  I have never accidently exited 
 blackbox, but some people might.  So it became a development issue when 
 someone had a problem with it.  I can't see it as being a detriment.  If you 
 don't like it, then turn it off.
 
 
 Andy



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

[jschauma@becasse jschauma]$ cat .bbkeysrc | grep kill
KeyToGrab(F12), WithModifier(Control), WithAction(ExecCommand),
DoThis(kill `ps ax | grep blackbox | grep -v grep | awk '{print $1;}'`)
[jschauma@becasse jschauma]$  uname
NetBSD
[jschauma@becasse jschauma]$

[jschauma@www jschauma]$ cat .bbkeysrc | grep kill
KeyToGrab(F12), WithModifier(Control), WithAction(ExecCommand),
DoThis(kill `ps h -C blackbox -o %p`)
[jschauma@www jschauma]$ uname
Linux
[jschauma@www jschauma]$

man kil
man ps

-Jan

-- 
http://www.netmeister.org
http://guinness.cs.stevens-tech.edu/~jschauma/



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 manager I've used.  No it doesn't
ask for confirmation.


 Eric Carlsen
 [EMAIL PROTECTED]


Tim

-- 
If you want to speak to someone knowledgeable about computers and who
knows what's going on in the local computer store, then you are forced
to talk to yourself... (;-))



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 ones added,
renamed, etc. :-(

aloha,
dave
 



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 to tell it to close. Then blackbox should quickly do
the right thing. 

  Jeremy C. Reed
  http://bsd.reedmedia.net/  -- BSD news and resources
  http://www.isp-faq.com/-- find answers to your questions



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
 signal to blackbox to tell it to close. Then blackbox should quickly do
 the right thing. 

I don't know, I've always thought that if you wanted to save your
changes that you should issue a Restart of Blackbox.  Sort of like a
save feature.  If you  don't then you lose your changes.  

Jamin W. Collins



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 bug. I am assuming that X would send a polite
  signal to blackbox to tell it to close. Then blackbox should quickly do
  the right thing. 
 
 I don't know, I've always thought that if you wanted to save your
 changes that you should issue a Restart of Blackbox.  Sort of like a
 save feature.  If you  don't then you lose your changes.  

When blackbox shuts down, it does the following:

void Blackbox::shutdown(void) {
  BaseDisplay::shutdown();

  XSetInputFocus(getXDisplay(), PointerRoot, None, CurrentTime);

  LinkedListIteratorBScreen it(screenList);
  for (; it.current(); it++)
it.current()-shutdown();

  XSync(getXDisplay(), False);

  save_rc();
}

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 doesn't, something's fishy.

-Jan

-- 
http://www.netmeister.org
http://guinness.cs.stevens-tech.edu/~jschauma/



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 SIGTERM and save the current configuration.
 
 If it doesn't, something's fishy.

From what I can tell, when C-A-BS is pressed, X catches it and kills
itself, thereby taking down all clients, either by being child processes or
losing the connection to the X server.

--gile
-- 
When you're born a lover, you're born to suffer
-- Depeche Mode, Goodnight Lovers



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 doesn't, something's fishy.
 

I believe the signal it sends is X is not here die now.  Which bb can not
catch.



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 SIGNATURE-
Version: PGP 6.5.8

iQA/AwUBPAyvCGkF5Bwr8hiXEQJHPQCdEaT3oJSGcJJ4IJRVuCWFXjDAsPUAmwYA
GsMInA51JiesbSIJFgTyjerr
=zcOG
-END PGP SIGNATURE-



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 and save the current configuration.
 
  If it doesn't, something's fishy.

 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.

See man 7 signal:

quote
Signal Value Action   Comment
---
SIGPIPE  13A  Broken pipe: write to pipe with no readers

()

The letters in the  Action  column  have  the  following
meanings:

A  Default action is to terminate the process.
/quote

So blackbox could catch the signal.

CTL+ALT+BS is most times not a clean way to exit X or a Desktop
environment (not that I don't use it: I do CTL+ALT+BS then CTL+ALT+DEL to
quickly halt my machine).

In most cases the apps you run are not children of X, but is it like this:

startx
`--X
`--Blackbox
   `--app1
   `--app2

or:

xdm
`--X
`--xsession
   `--Blackbox
  `--app1
  `--app2

[disclaimer:AFAIK].

Good luck!

Wilbert


-- 
Wilbert Berendsen (http://www.xs4all.nl/~wbsoft/)

To build an apple pie from scratch, you must first invent the universe.
Carl Sagan, Cosmos



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 CTRL-ALT-BSPC
  X, bb should receive a SIGTERM and save the current configuration.
 
  If it doesn't, something's fishy.

 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 should either.



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 should either.

In which case the following simple patch should fix the problem
(assuming BB _can_ catch SIGPIPE, and I don't see any reason why it
shouldn't be able to):

--- blackbox.cc.origTue Dec 11 18:06:15 2001
+++ blackbox.cc Tue Dec 11 18:07:01 2001
@@ -749,6 +749,7 @@
 rereadMenu();
 break;
 
+  case SIGPIPE:
   case SIGSEGV:
   case SIGFPE:
   case SIGINT:


No?

-Jan

-- 
http://www.netmeister.org
http://guinness.cs.stevens-tech.edu/~jschauma/



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 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]

- -- 
[scott] :: ein kalter Tod für den sprecher von Lügen

-BEGIN PGP SIGNATURE-
Version: PGP 6.5.8

iQA/AwUBPAy+82kF5Bwr8hiXEQLS1gCgvxmh/w+Qo2RFkRxCewSijX6C81oAn3Hf
xBAq06jM9D36hqEjL43pfYgy
=Yvzp
-END PGP SIGNATURE-



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 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 doesn't, something's fishy.
 
  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 should either.

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 ?

- -- 
[scott] :: ein kalter Tod für den sprecher von Lügen

-BEGIN PGP SIGNATURE-
Version: PGP 6.5.8

iQA/AwUBPAzBCGkF5Bwr8hiXEQIergCg3AxVv7Fd33aVD5qr3KnqAqulNEsAoMnA
sXsxgI3peTY6bw1ANTwPNg4s
=bwNv
-END PGP SIGNATURE-



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:
  case SIGINT:  
  case SIGTERM: 
shutdown();

says the blackbox code.  SIGPIPE may or may not appear in that list soon.



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)
 
 Caveat:  It'll kill all blackbox instances that you own.
 
 #!/usr/bin/perl
 print Really exit? (y/N): ;
 if (STDIN =~ m/y/i) { 
   system('killall blackbox');
 }

Not platform independent:

[jschauma@becasse jschauma]$ uname  
NetBSD
[jschauma@becasse jschauma]$ killall
bash: killall: command not found
[jschauma@becasse jschauma]$ 

I believe you need to revert to the whole ps, kill, grep shebang that I
posted earlier as part of my .bbkeysrc

-Jan

-- 
http://www.netmeister.org
http://guinness.cs.stevens-tech.edu/~jschauma/



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 only when I lose myself in someone else, that I find myself
-- Depeche Mode, Only When I Lose Myself



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 blackbox, but it wont give your window manager a chance
 to save any needed data. This might not be a problem in blackbox,
 but some other windowmanagers save session data and even preference
 changes when you exit and not immedietly after making the changes.

Greg



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 option...

-Jan

-- 
http://www.netmeister.org
http://guinness.cs.stevens-tech.edu/~jschauma/



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 lot.  I don't use the menu
_ever_, so if it could be a compile-time option...

-Jan



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 would like that a lot.  I don't use the menu
 _ever_, so if it could be a compile-time option...

 You're joking.. right?  ;P

Not really:

[jschauma@www jschauma]$ cat .xinitrc
exec /home/jschauma/bin/startbb
[jschauma@www jschauma]$ cat bin/startbb 
#!/bin/bash

imwheel -k 
xhost +localhost
xscreensaver 

xset dpms 0 1200 2400

rxvt -ls  -g 85x45 -T E-Mail -e mutt  
rxvt -ls  -g 85x45 -T News -e slrn 
#rxvt -ls  -g 125x45+0+68

wmnet -w
licq

xsetroot -cursor_name X_cursor
xconsole -geometry 1035x35+100+0 -file /var/log/apache/access.log 
xset m 20/10 4

bbpager 
bbkeys -i 
bbmail -c /home/jschauma/.bbmailrc 
/usr/bin/bbweather -g +110-0 -c -t 20 -u 20 KNYC
exec blackbox
[jschauma@www jschauma]$ cat .bbkeysrc 
# bbkeys config file, automagically generated by bbconf.


KeyToGrab(KP_Add), WithModifier(Control), WithAction(MaximizeWindow)
KeyToGrab(Up), WithModifier(Control+Shift), WithAction(BigNudgeUp)
KeyToGrab(Down), WithModifier(Control+Shift), WithAction(BigNudgeDown)
KeyToGrab(Left), WithModifier(Control+Shift), WithAction(BigNudgeLeft)
KeyToGrab(Right), WithModifier(Control+Shift), WithAction(BigNudgeRight)
KeyToGrab(Tab), WithModifier(Mod1), WithAction(NextWindow)
KeyToGrab(Tab), WithModifier(Mod1+Shift), WithAction(PrevWindow)
KeyToGrab(Up), WithModifier(Control+Mod1), WithAction(UpWorkspace)
KeyToGrab(Down), WithModifier(Control+Mod1), WithAction(DownWorkspace)
KeyToGrab(Left), WithModifier(Control+Mod1), WithAction(LeftWorkspace)
KeyToGrab(Right), WithModifier(Control+Mod1), WithAction(RightWorkspace)
KeyToGrab(l), WithModifier(Mod1), WithAction(ExecCommand), 
DoThis(bblaunch -h -v rxvt -ls -T Web -e links)
KeyToGrab(t), WithModifier(Mod1), WithAction(ExecCommand), 
DoThis(rxvt -bg black -fg wheat -ls)
KeyToGrab(s), WithModifier(Mod1), WithAction(ExecCommand), 
DoThis(rxvt -bg black -fg wheat -ls -T News -g 85x45 -e slrn)
KeyToGrab(m), WithModifier(Mod1), WithAction(ExecCommand), 
DoThis(rxvt -bg black -fg wheat -ls -T E-Mail -g 85x45 -e mutt)
KeyToGrab(F12), WithModifier(Control), WithAction(ExecCommand),
DoThis(kill `ps h -C blackbox -o %p`)
KeyToGrab(F1), WithModifier(Mod1), WithAction(ExecCommand),
   DoThis(konqueror)
KeyToGrab(F2), WithModifier(Mod1), WithAction(ExecCommand),
  DoThis(/usr/bin/X11/navigator)
[jschauma@www jschauma]$ 


What would I need the menu for?

-Jan

-- 
http://www.netmeister.org
http://guinness.cs.stevens-tech.edu/~jschauma/



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]
[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 security. ^_^

Good point - I had forgotten about this little titdbit.  Alas, since I'm
the only user on _that_ system, it's actually not a problem.  But you're
right - I should change it just to not get into the habit..

-Jan

-- 
http://www.netmeister.org
http://guinness.cs.stevens-tech.edu/~jschauma/



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 users will be happy ;-)


 It is very easy to take minimalism to the point of being unusable.

That's not the point: blackbox is still very usable *because of
it's minimalism*


Mark



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 option (Andy and yourself). Seems the rest of us does not!

Why do you ignore the bbexit tool suggestion? Or what's about a patch? 

 I believe this would be a valuable addition. [...] This is a lot more
 polite to the end user and is expected behaviour.

As an end user: it's not polite for me and i do not expect it. Exit
never confused me nor did i ever killed a session by mistake.

One reason for me to use bb: no dialog boxes!!

 Please go to the sourceforge site and add a request for this item.  

Request for a tool or a patch - many blackbox users will thank you

Mark


Mark



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 care of the end users? Only two users want an
 exitconfirm option (Andy and yourself). Seems the rest of us does not!


Please read all relevant emails before speaking for me next time.  For the 
record I never requested this feature.  Sean never volunteered this feature.  
I think it is also unfair to speak for  the rest of us as well.

A user posted this request to this list, several people posted possible 
solutions, I pointed out one, and what I saw as pros and cons to several 
different implementations.  I have had a mild conversation with Sean about 
it, being as he has taken the reigns of development.  

Not once did I ever state which way to go with, and not once has Sean ever 
stated which path will be persued.


I click on the exit ... when I want to exit.  I have never accidently exited 
blackbox, but some people might.  So it became a development issue when 
someone had a problem with it.  I can't see it as being a detriment.  If you 
don't like it, then turn it off.


Andy



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)
 [end]
 
 People who don't want confirmation can edit the menu and make it [exit].
 
 --
 Joshua Swink
 [EMAIL PROTECTED]

Add my vote for this new menu item.  :)

I like being able to exit with one click, so i wouldn't want [exit] to
change its current behaviour.

- -- 
[scott] :: ein kalter Tod für den sprecher von Lügen

-BEGIN PGP SIGNATURE-
Version: PGP 6.5.8

iQA/AwUBPAq2gmkF5Bwr8hiXEQKbeACg1ol41VYOOkIH3onsFlZRdZHbzLEAmwc8
iVwtPwn4739j+Iwgi01FmclY
=QNFX
-END PGP SIGNATURE-



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
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.
 
  From my brief knowledge of the code base, I don't think it would be very
   hard
 
  to implement a user prompt in the shutdown() method.

 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)
 [end]

 People who don't want confirmation can edit the menu and make it [exit].

I would imagine there would be a configuration option to confirm upon exit.
Maybe in .blackboxrc.

Adding a separate menu selection to do this doesn't seem to be efficient.

The menu selection should still be [exit], and configuration for how exiting
operates makes sense.  Not creating a different menu selection for every
possible behaviour.

Just my thoughts.

Andy



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 implement a user prompt in the shutdown() method.
 
 I am sure Sean will add this to the TODO list, and it will get done 
 eventually.  Please correct me if I am wrong. :-(
 

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.

I believe this would be a valuable addition.  However it will not be the
default action of 'exit'.  A exitconfirm option should be added.  This is a lot
more polite to the end user and is expected behaviour.

Please go to the sourceforge site and add a request for this item.  If the site
does not allow you to do so, please mail me.



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 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.

This is a nice solution!  Actually very much in the Blackbox spirit.

  
   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 implement a user prompt in the shutdown() method.
 
  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)
  [end]
 
  People who don't want confirmation can edit the menu and make it [exit].

 I would imagine there would be a configuration option to confirm upon exit.
 Maybe in .blackboxrc.

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.

You may use the xtexit program.  It displays a dialog and sends a close
event to all open windows, so that apps can display a save yes/no dialog.
Then, when you click on the 'exit' button it resets the X server, thereby
quitting blackbox (but w/o saving the resource file).

There could also be written a little utility: bbexit.  This could display
a dialog and use the bbkeys mechanism to send Blackbox a quit command when
the user confirms.

regards,
wilbert

-- 
Wilbert Berendsen (http://www.xs4all.nl/~wbsoft/)

To build an apple pie from scratch, you must first invent the universe.
Carl Sagan, Cosmos



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 rectangle shape.

Lean and clean is a driving goal in bb, no doubt.  However a kneejerk reaction
of that will just make it bigger and there are other ways to do it need to be
avoided.  Some things make no sense for bb to do or are better served
elsewhere.

It is very easy to take minimalism to the point of being unusable. 
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?  Or perhaps styles are
silly and should be removed.  You can change the colours by editing the source
code.  As you can see this is just silly.



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 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.

From my brief knowledge of the code base, I don't think it would be very hard 
to implement a user prompt in the shutdown() method.

I am sure Sean will add this to the TODO list, and it will get done 
eventually.  Please correct me if I am wrong. :-(


Cheers,

Andy



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 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.
 
 From my brief knowledge of the code base, I don't think it would be very hard 
 to implement a user prompt in the shutdown() method.

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)
[end]

People who don't want confirmation can edit the menu and make it [exit].

--
Joshua Swink
[EMAIL PROTECTED]



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 am missing about where to remove this default Exit.

Thanks,
Paul

P.S. Thanks for all the help so far!  I'm glad to see a good, strong
user community for my new favorite window manager!


On Sat, 2001-12-08 at 21:04, Matthew Wong 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.
 
 -- 
Matthew Wong, D.D.S.  WWW: http://cot.freeshell.org/
[EMAIL PROTECTED]