Skip to content

Commit c433277

Browse files
committed
keyboardManager.js: Seed empty xkb-options when reading from the
default configuration. GSettings overrides will defeat this on first-run - if an xkb- option is defined as a gsettings override (like there is in Mint), this will never run unless the user explicitly clears the xkb-options key followed by the sources key. Fixes #13662.
1 parent d405e44 commit c433277

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

js/ui/keyboardManager.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,12 @@ var Locale1Settings = class {
399399
let sources = GLib.Variant.new('a(ss)', sourcesList);
400400
settings.set_value(KEY_INPUT_SOURCES, sources);
401401
}
402+
403+
if (settings.get_strv(KEY_KEYBOARD_OPTIONS).length == 0) {
404+
let options = _options.split(',').filter(o => o.length > 0);
405+
if (options.length > 0)
406+
settings.set_strv(KEY_KEYBOARD_OPTIONS, options);
407+
}
402408
});
403409
}
404410
};

0 commit comments

Comments
 (0)