keybindings.js: Skip invalid custom-list entries instead of aborting setup

This commit is contained in:
dualfroz committed 2026-10-12 19:30:19 +02:00
1 parent 49f0af4ae1
commit 4991f28aef
1 file changed
+4
+4
View File
@@ -394,6 +394,10 @@ KeybindingManager.prototype = {
let custom_path = CUSTOM_KEYS_BASENAME + "/" + list[i] + "/";
let schema = Gio.Settings.new_with_path(CUSTOM_KEYS_SCHEMA, custom_path);
if (!schema) {
global.logWarning(`Ignoring invalid custom keybinding entry '${list[i]}'`);
continue;
}
let command = schema.get_string("command");
let binding = schema.get_strv("binding");
let name = list[i];