How fthx/lock-guard works
Lock Guard is a small GNOME Shell extension that restricts lock-screen access to selected controls and reports repeated authentication failures. On enable, it saves and disables keybindings, hides Quick Settings, and connects to authentication failures; on disable, it restores the controls and reports failures if the threshold was reached. The only source file was excerpted, so the graph reflects its explicit interactions and does not infer broader GNOME internals.
Main entry points: extension.js Extension lifecycle
Components 7
Lock protection
- Extension lifecycle
extension.js
Failure reporting
- Failure counter
extension.js - Warning notification
extension.js
GNOME Shell
- Auth verifier
- Keybindings
- Quick Settings
- Message tray
Connections 6
- Extension lifecycle → Keybindings: disables/restores
extension.js - Extension lifecycle → Quick Settings: hides/shows
extension.js - Extension lifecycle → Auth verifier: connects to failures
extension.js - Auth verifier → Failure counter: signals failure
extension.js - Extension lifecycle → Warning notification: checks on disable
extension.js - Warning notification → Message tray: adds warning
extension.js