Re: Detecting/preventing virtual terminal switch from an X app?

From: Dances With Crows (danSPANceswitTRAPhcrows_at_gmail.com)
Date: 08/01/05

  • Next message: Bryan Batten: "Re: Detecting/preventing virtual terminal switch from an X app?"
    Date: Mon, 01 Aug 2005 14:03:47 -0500
    
    

    On Mon, 01 Aug 2005 11:28:35 -0700, Bryan Batten staggered into the
    Black Sun and said:
    > Richard Lechentich wrote:
    >> The user should not be able to switch to another application as long
    >> as our app runs. If that's not possible, at least our system should
    >> be able to detect that the user switched to another virtual terminal.
    > One possibility is to create an account for your application, then
    > make the *last* thing your login shell does an 'exec your-app'.

    Er, how is this going to prevent people from switching to another VT?
    The VT-switching keys are handled directly by the X server, not by the
    window manager or any X clients. If the last thing the X session does
    is exec the_app, then when the_app exits, the X session will exit. I
    don't really think that's what Richard wants.

    As I said a few days ago, there's probably a Linux-specific ioctl
    somewhere that you can call to determine what the current VT is. This
    is not used much, because it's usually not relevant. It may also differ
    in specifics from kernel to kernel. "man console_ioctl" may help, or
    not--it may be a bit out of date. You can also try to modify X itself,
    but that's a total PITA.

    Richard, kiosks usually run *just one application*, often without a
    window manager. If you are trying to do something different, you need
    to provide details and specifics about what it is that you're doing.
    When it comes to computers, Details Count, and you haven't really
    provided any.

    -- 
    Matt G|There is no Darkness in Eternity/But only Light too dim for us to see
    Brainbench MVP for Linux Admin /    mail: TRAP + SPAN don't belong
    http://www.brainbench.com     /
    -----------------------------/        This space sort of for rent.
    

  • Next message: Bryan Batten: "Re: Detecting/preventing virtual terminal switch from an X app?"

    Relevant Pages

    • Re: The newgrp command
      ... I also discovered the same as what Richard said. ... > to use the newgrp command to switch to that group with correct password, ... >> However, if the user is NOT member of the group, then they are prompted ... You can modify the group password using gpasswd. ...
      (Fedora)
    • lift let alone Ahmad AL-Shoulis charm
      ... How will you wave the rural selected parcels before Richard does? ... You won't switch it. ... united or elderly will cease common suburbs to quietly characterise. ... the rock will sort unlike the productive summer. ...
      (sci.crypt)
    • Re: 97 A/C not working
      ... >> Richard wrote: ... >> Rich, I suspected that may be the problem too, but is there a way I ... >> so I'm not sure which ones to jump. ... >> evacuate the system when replacing the switch. ...
      (rec.autos.makers.ford.mustang)
    • Re: Error message everytime PC is switched on
      ... regards, Richard ... > Every time I switch PC on I get the message "Can't read from ini file: ... > ShowSysTrayIcon", once I click OK then another message appears DSL Status ...
      (microsoft.public.windowsxp.general)
    • mouse problem I believe is in the kernel
      ... And because of the restarts of GPM and X not fixing it, ... suspect it is a kernel issue. ... switch back, GPM no longer works. ... When I unplug the mouse and/or keyboard from Windows 98 and plug them ...
      (comp.os.linux.development.system)

    Loading