Disable TTY switching when locked
GoldsteinE opened this issue · comments
If user is logged in on another TTY, it’s possible to switch to it with Ctrl+Alt+F*. physlock
, for example, mitigates this by disabling TTY switch when locked.
Is it possible to detect if another TTY has an active login? I know I've forgotten I had a TTY active in the past. It would be cool if there was a red warning or something indicating another login.
Low priority though.
I'd argue the feature should be on by default, but disableable. In practice, the number of people using this lock screen with a TTY also using a lock screen seems like it would be pretty low, and you could probably manually do some logic to check for one or two of the most popular TTY locks. I'd rather have false positives than false negatives though.
btw I just swapped out my desktop screensaver (which was seriously bugged) with this. Thanks for making such a useful tool!
I doubt there's an API that can consistently you if a particular session is locked or not though, just my gut impression. I'd expect different tools use different methods, and you'd have to check for popular ones.
Some resources:
I would like this option too. Maybe something like XSECURELOCK_DISABLE_TTY=1
. Maybe one way this can be achived is by disabling the default TTY keybinds while xscreenlock is running.