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