Re: Detecting/preventing virtual terminal switch from an X app?
From: Dances With Crows (danSPANceswitTRAPhcrows_at_gmail.com)
Date: 08/01/05
- Previous message: Bryan Batten: "Re: Detecting/preventing virtual terminal switch from an X app?"
- In reply to: Bryan Batten: "Re: Detecting/preventing virtual terminal switch from an X app?"
- Next in thread: Bryan Batten: "Re: Detecting/preventing virtual terminal switch from an X app?"
- Reply: Bryan Batten: "Re: Detecting/preventing virtual terminal switch from an X app?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
- Previous message: Bryan Batten: "Re: Detecting/preventing virtual terminal switch from an X app?"
- In reply to: Bryan Batten: "Re: Detecting/preventing virtual terminal switch from an X app?"
- Next in thread: Bryan Batten: "Re: Detecting/preventing virtual terminal switch from an X app?"
- Reply: Bryan Batten: "Re: Detecting/preventing virtual terminal switch from an X app?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|