1

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.xml that calls a script that uses chvt)

Some things I've tried that did not work:

  • Creating empty keybinds in .config/labwc/rc.xml like 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.
  • Change NAutoVTs in /etc/systemd/logind.conf to 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 dumpkeys and then loading this new map
    • It worked in reverse. I can exit labwc with the command but I cannot get back

0

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.