main: Pick up overridesSchema from sessionMode
This will allow the use of mode-specific defaults. For classic mode we currently implement this with mini-extensions, but this may result in confusing behavior when settings change due to extensions being disabled during screen locks (not to mention that those mini-extensions are hardly an elegant approach). https://bugzilla.gnome.org/show_bug.cgi?id=701717
This commit is contained in:
parent
bcede26d77
commit
36b1cd13c9
@ -116,9 +116,9 @@ function _sessionsLoaded() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function _initializePrefs() {
|
function _initializePrefs() {
|
||||||
let keys = new Gio.Settings({ schema: OVERRIDES_SCHEMA }).list_keys();
|
let keys = new Gio.Settings({ schema: sessionMode.overridesSchema }).list_keys();
|
||||||
for (let i = 0; i < keys.length; i++)
|
for (let i = 0; i < keys.length; i++)
|
||||||
Meta.prefs_override_preference_schema (keys[i], OVERRIDES_SCHEMA);
|
Meta.prefs_override_preference_schema (keys[i], sessionMode.overridesSchema);
|
||||||
}
|
}
|
||||||
|
|
||||||
function _initializeUI() {
|
function _initializeUI() {
|
||||||
|
@ -16,6 +16,7 @@ const _modes = {
|
|||||||
'restrictive': {
|
'restrictive': {
|
||||||
parentMode: null,
|
parentMode: null,
|
||||||
stylesheetName: 'gnome-shell.css',
|
stylesheetName: 'gnome-shell.css',
|
||||||
|
overridesSchema: 'org.gnome.shell.overrides',
|
||||||
hasOverview: false,
|
hasOverview: false,
|
||||||
showCalendarEvents: false,
|
showCalendarEvents: false,
|
||||||
allowSettings: false,
|
allowSettings: false,
|
||||||
|
Loading…
Reference in New Issue
Block a user