gnome-shell/SOURCES/0001-screenShield-unblank-when-inserting-smartcard.patch

34 lines
1.4 KiB
Diff
Raw Normal View History

2019-11-05 19:43:42 +00:00
From cacce594f07295bb1b9e0685913a287e3cea2453 Mon Sep 17 00:00:00 2001
2019-05-07 12:23:00 +00:00
From: Ray Strode <rstrode@redhat.com>
Date: Fri, 3 Jul 2015 13:54:36 -0400
Subject: [PATCH] screenShield: unblank when inserting smartcard
If a user inserts the smartcard when the screen is locked/blanked
we should ask them their pin right away.
At the moment they have to wiggle the mouse or do some other
action to get the screen to unblank.
---
js/ui/screenShield.js | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/js/ui/screenShield.js b/js/ui/screenShield.js
2019-11-05 19:43:42 +00:00
index a005a206b..cd38f11fc 100644
2019-05-07 12:23:00 +00:00
--- a/js/ui/screenShield.js
+++ b/js/ui/screenShield.js
2019-11-05 19:43:42 +00:00
@@ -513,8 +513,10 @@ var ScreenShield = class {
2019-05-07 12:23:00 +00:00
this._smartcardManager = SmartcardManager.getSmartcardManager();
this._smartcardManager.connect('smartcard-inserted',
(manager, token) => {
- if (this._isLocked && token.UsedToLogin)
+ if (this._isLocked && token.UsedToLogin) {
+ this._wakeUpScreen();
this._liftShield(true, 0);
+ }
});
this._oVirtCredentialsManager = OVirt.getOVirtCredentialsManager();
--
2019-11-05 19:43:42 +00:00
2.21.0
2019-05-07 12:23:00 +00:00