Commit 91844e48 authored by Florian Müllner's avatar Florian Müllner
Browse files

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).
parent 6c2f3d1d
......@@ -118,10 +118,9 @@ function _sessionsLoaded() {
function _initializePrefs() {
let overridesSchema = '';
let keys = new Gio.Settings({ schema: overridesSchema }).list_keys();
let keys = new Gio.Settings({ schema: sessionMode.overridesSchema }).list_keys();
for (let i = 0; i < keys.length; i++)
Meta.prefs_override_preference_schema(keys[i], overridesSchema);
Meta.prefs_override_preference_schema(keys[i], sessionMode.overridesSchema);
function _initializeUI() {
......@@ -16,6 +16,7 @@ const _modes = {
'restrictive': {
parentMode: null,
stylesheetName: 'gnome-shell.css',
overridesSchema: '',
hasOverview: false,
showCalendarEvents: false,
allowSettings: false,
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment