Blame SOURCES/0004-sessionMode-Allow-extensions-at-the-login-and-unlock.patch

477568
From 5fad989ca773f9e0ff6fdbeb0cb7c9cb70cc6148 Mon Sep 17 00:00:00 2001
477568
From: Ray Strode <rstrode@redhat.com>
477568
Date: Tue, 10 Aug 2021 15:31:00 -0400
477568
Subject: [PATCH 4/4] sessionMode: Allow extensions at the login and unlock
477568
 screens
477568
477568
Now extensions can specify which session modes they work in,
477568
but specifying the login screen or unlock screen session modes in
477568
an extensions metadata still won't work, because those session
477568
modes disallow extensions.
477568
477568
This commit fixes that.
477568
---
477568
 js/ui/sessionMode.js | 3 +++
477568
 1 file changed, 3 insertions(+)
477568
477568
diff --git a/js/ui/sessionMode.js b/js/ui/sessionMode.js
477568
index fa7f83416..8d8ce1a64 100644
477568
--- a/js/ui/sessionMode.js
477568
+++ b/js/ui/sessionMode.js
477568
@@ -12,89 +12,92 @@ const Config = imports.misc.config;
477568
 const DEFAULT_MODE = 'restrictive';
477568
 
477568
 const _modes = {
477568
     'restrictive': {
477568
         parentMode: null,
477568
         stylesheetName: 'gnome-shell.css',
477568
         hasOverview: false,
477568
         showCalendarEvents: false,
477568
         allowSettings: false,
477568
         allowExtensions: false,
477568
         allowScreencast: false,
477568
         enabledExtensions: [],
477568
         hasRunDialog: false,
477568
         hasWorkspaces: false,
477568
         hasWindows: false,
477568
         hasNotifications: false,
477568
         isLocked: false,
477568
         isGreeter: false,
477568
         isPrimary: false,
477568
         unlockDialog: null,
477568
         components: [],
477568
         panel: {
477568
             left: [],
477568
             center: [],
477568
             right: []
477568
         },
477568
         panelStyle: null
477568
     },
477568
 
477568
     'gdm': {
477568
+        allowExtensions: true,
477568
         hasNotifications: true,
477568
         isGreeter: true,
477568
         isPrimary: true,
477568
         unlockDialog: imports.gdm.loginDialog.LoginDialog,
477568
         components: Config.HAVE_NETWORKMANAGER
477568
             ? ['networkAgent', 'polkitAgent']
477568
             : ['polkitAgent'],
477568
         panel: {
477568
             left: [],
477568
             center: ['dateMenu'],
477568
             right: ['a11y', 'keyboard', 'aggregateMenu']
477568
         },
477568
         panelStyle: 'login-screen'
477568
     },
477568
 
477568
     'lock-screen': {
477568
+        allowExtensions: true,
477568
         isLocked: true,
477568
         isGreeter: undefined,
477568
         unlockDialog: undefined,
477568
         components: ['polkitAgent', 'telepathyClient'],
477568
         panel: {
477568
             left: [],
477568
             center: [],
477568
             right: ['aggregateMenu']
477568
         },
477568
         panelStyle: 'lock-screen'
477568
     },
477568
 
477568
     'unlock-dialog': {
477568
+        allowExtensions: true,
477568
         isLocked: true,
477568
         unlockDialog: undefined,
477568
         components: ['polkitAgent', 'telepathyClient'],
477568
         panel: {
477568
             left: [],
477568
             center: [],
477568
             right: ['a11y', 'keyboard', 'aggregateMenu']
477568
         },
477568
         panelStyle: 'unlock-screen'
477568
     },
477568
 
477568
     'user': {
477568
         hasOverview: true,
477568
         showCalendarEvents: true,
477568
         allowSettings: true,
477568
         allowExtensions: true,
477568
         allowScreencast: true,
477568
         hasRunDialog: true,
477568
         hasWorkspaces: true,
477568
         hasWindows: true,
477568
         hasNotifications: true,
477568
         isLocked: false,
477568
         isPrimary: true,
477568
         unlockDialog: imports.ui.unlockDialog.UnlockDialog,
477568
         components: Config.HAVE_NETWORKMANAGER ?
477568
                     ['networkAgent', 'polkitAgent', 'telepathyClient',
477568
                      'keyring', 'autorunManager', 'automountManager'] :
477568
                     ['polkitAgent', 'telepathyClient',
477568
                      'keyring', 'autorunManager', 'automountManager'],
477568
 
477568
-- 
477568
2.27.0
477568