← Back to team overview

sslug-teknik team mailing list archive

Re: xlock

 

fuzz01@xxxxxxxxxxxxx (Anders Bo Rasmussen) writes:

> > DontZap This  disallows  the use of the Ctrl+Alt+Backspace
> 
> Nej, det skal kun være når man har xlocket.

Hmm... så vidt, jeg kan forstå på xscreensaver man siderne, så kan 
det desværre ikke lade sig gøre.

[snippet fra man siderne]
 XFree86's Magic Keystrokes
               The   XFree86   X   server   traps  certain  magic
               keystrokes before client programs ever  see  them.
               Two that are of note are Ctrl+Alt+Backspace, which
               causes the X  server  to  exit;  and  Ctrl+Alt+Fn,
               which  switches  virtual  consoles.   The X server
               will  respond  to   these   keystrokes   even   if
               xscreensaver  has the screen locked.  Depending on
               your setup, you might consider this a problem.

               Unfortunately, there is no  way  for  xscreensaver
               itself  to  override  the  interpretation of these
               keys.  If you want to  disable  Ctrl+Alt+Backspace
               globally, you need to set the DontZap flag in your
               /etc/X11/XF86Config file.  See  the  XF86Config(5)
               manual for details.

               There  is no way (as far as I can tell) to disable
               the VT-switching keystrokes.

               Some  Linux  systems  come  with  a  VT_LOCKSWITCH
               ioctl, that one could theoretically use to prevent
               VT-switching  while  the  screen  is  locked;  but
               unfortunately,  this  ioctl  can  only  be used by
               root, which means that xscreensaver can't  use  it
               (since   xscreensaver   disavows   its  privileges
               shortly after startup, for security reasons.)

               Any  suggestions  for  other  solutions  to   this
               problem are welcome.
[snip snap]

> -- 
> Anders Bo Rasmussen          mailto:fuzz01@xxxxxxxxxxxxx

-- 
Ole Hansen


References