Im running a labwc kiosk app and want to prevent users from tty switching easily.
Previously, I had a Xserver with the "DontVTSwitch" option on and it worked like a charm. I changed to labwc because external things and I'm having a ton a difficulty implementing this. There are some requirements:
- Prevent exiting labwc view with Ctrl+Alt+F[2-9]
- Allow to switch with a special keybind (this is already implemented using a keybind in
.config/labwc/rc.xmlthat calls a script that useschvt)
Some things I've tried that did not work:
- Creating empty keybinds in
.config/labwc/rc.xmllike this<keybind key="C-A-F2"><action name="None"/></keybind>- It did not work. I think the keybind does not reach this part. i tried change to
<action name="Execute" command="echo 'VT switching'"/>and it did not print and still changed.
- It did not work. I think the keybind does not reach this part. i tried change to
- Change
NAutoVTsin/etc/systemd/logind.confto 1- It did not prevent from exiting the labwc view but it did not appear the login prompt
- Delete any line that contains 'Console_' in
dumpkeysand then loading this new map- It worked in reverse. I can exit labwc with the command but I cannot get back