[gnome-shell/wip/rstrode/login-screen-extensions: 2/3] sessionMode: Allow extensions at the login and unlock screens




commit 766fd2b9566af195c2a226b2853997bab24fa5d2
Author: Ray Strode <rstrode redhat com>
Date:   Tue Aug 10 15:31:00 2021 -0400

    sessionMode: Allow extensions at the login and unlock screens
    
    Now extensions can specify which session modes they work in,
    but specifying the login screen or unlock screen session modes in
    an extensions metadata still won't work, because those session
    modes disallow extensions.
    
    This commit fixes that.

 js/ui/sessionMode.js | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/js/ui/sessionMode.js b/js/ui/sessionMode.js
index afcd67cfd2..7629a509b5 100644
--- a/js/ui/sessionMode.js
+++ b/js/ui/sessionMode.js
@@ -42,6 +42,7 @@ const _modes = {
     },
 
     'gdm': {
+        allowExtensions: true,
         hasNotifications: true,
         isGreeter: true,
         isPrimary: true,
@@ -58,6 +59,7 @@ const _modes = {
     },
 
     'unlock-dialog': {
+        allowExtensions: true,
         isLocked: true,
         unlockDialog: undefined,
         components: ['polkitAgent', 'telepathyClient'],


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]