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.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1967>
This commit is contained in:
Ray Strode 2021-08-10 15:31:00 -04:00 committed by Marge Bot
parent 242cff7abf
commit 2bf31dc49f
2 changed files with 3 additions and 1 deletions

View File

@ -74,7 +74,7 @@ var ExtensionManager = class {
} }
_extensionSupportsSessionMode(uuid) { _extensionSupportsSessionMode(uuid) {
let extension = this.lookup(uuid); const extension = this.lookup(uuid);
if (!extension) if (!extension)
return false; return false;

View File

@ -42,6 +42,7 @@ const _modes = {
}, },
'gdm': { 'gdm': {
allowExtensions: true,
hasNotifications: true, hasNotifications: true,
isGreeter: true, isGreeter: true,
isPrimary: true, isPrimary: true,
@ -58,6 +59,7 @@ const _modes = {
}, },
'unlock-dialog': { 'unlock-dialog': {
allowExtensions: true,
isLocked: true, isLocked: true,
unlockDialog: undefined, unlockDialog: undefined,
components: ['polkitAgent', 'telepathyClient'], components: ['polkitAgent', 'telepathyClient'],