mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
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:
parent
242cff7abf
commit
2bf31dc49f
2 changed files with 3 additions and 1 deletions
|
|
@ -74,7 +74,7 @@ var ExtensionManager = class {
|
|||
}
|
||||
|
||||
_extensionSupportsSessionMode(uuid) {
|
||||
let extension = this.lookup(uuid);
|
||||
const extension = this.lookup(uuid);
|
||||
|
||||
if (!extension)
|
||||
return false;
|
||||
|
|
|
|||
|
|
@ -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'],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue