[gnome-shell] sessionMode: Inherit from a more restrictive session mode by default
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] sessionMode: Inherit from a more restrictive session mode by default
- Date: Tue, 4 Sep 2012 21:43:33 +0000 (UTC)
commit 16e92a7ca3ff560c9bf7b403930679f8fb0bb022
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Mon Sep 3 22:26:37 2012 -0300
sessionMode: Inherit from a more restrictive session mode by default
It makes more sense to define session modes in terms of what you're
adding to the bare shell, not in terms of what you're taking away
from the user session.
https://bugzilla.gnome.org/show_bug.cgi?id=683156
js/ui/sessionMode.js | 38 ++++++++++++++++----------------------
1 files changed, 16 insertions(+), 22 deletions(-)
---
diff --git a/js/ui/sessionMode.js b/js/ui/sessionMode.js
index 40a68f6..c5ec0aa 100644
--- a/js/ui/sessionMode.js
+++ b/js/ui/sessionMode.js
@@ -6,22 +6,33 @@ const Signals = imports.signals;
const Main = imports.ui.main;
const Params = imports.misc.params;
-const DEFAULT_MODE = 'user';
+const DEFAULT_MODE = 'restrictive';
const _modes = {
- 'gdm': {
+ 'restrictive': {
hasOverview: false,
showCalendarEvents: false,
allowSettings: false,
allowExtensions: false,
- allowKeybindingsWhenModal: true,
+ allowKeybindingsWhenModal: false,
hasRunDialog: false,
hasWorkspaces: false,
hasWindows: false,
- createUnlockDialog: Main.createGDMLoginDialog,
+ isLocked: false,
+ createUnlockDialog: null,
components: [],
panel: {
left: [],
+ center: [],
+ right: []
+ },
+ },
+
+ 'gdm': {
+ allowKeybindingsWhenModal: true,
+ createUnlockDialog: Main.createGDMLoginDialog,
+ panel: {
+ left: [],
center: ['dateMenu'],
right: ['a11y', 'display', 'keyboard',
'volume', 'battery', 'powerMenu']
@@ -29,16 +40,9 @@ const _modes = {
},
'lock-screen': {
- hasOverview: false,
- showCalendarEvents: false,
- allowSettings: false,
- allowExtensions: false,
- allowKeybindingsWhenModal: false,
- hasRunDialog: false,
- hasWorkspaces: false,
- hasWindows: false,
isLocked: true,
components: ['networkAgent', 'polkitAgent', 'telepathyClient'],
+ createUnlockDialog: Main.createSessionUnlockDialog,
panel: {
left: ['userMenu'],
center: [],
@@ -47,13 +51,6 @@ const _modes = {
},
'initial-setup': {
- hasOverview: false,
- showCalendarEvents: false,
- allowSettings: false,
- allowExtensions: false,
- allowKeybindingsWhenModal: false,
- hasRunDialog: false,
- hasWorkspaces: false,
components: ['keyring'],
panel: {
left: [],
@@ -67,12 +64,9 @@ const _modes = {
showCalendarEvents: true,
allowSettings: true,
allowExtensions: true,
- allowKeybindingsWhenModal: false,
hasRunDialog: true,
hasWorkspaces: true,
hasWindows: true,
- createUnlockDialog: Main.createSessionUnlockDialog,
- isLocked: false,
components: ['networkAgent', 'polkitAgent', 'telepathyClient',
'keyring', 'recorder', 'autorunManager', 'automountManager'],
panel: {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]