From c49dd02b3f0422a793c7b9263aaf30434cde34c7 Mon Sep 17 00:00:00 2001 From: Osamaali313 <86572800+Osamaali313@users.noreply.github.com> Date: Thu, 25 Jun 2026 22:54:09 +0300 Subject: [PATCH] fix: use lowercased key when validating windowsterminal.profileTemplate read_config_keys lowercases option names (line 198: key.lower()), so the stored key is 'windowsterminal.profiletemplate'. The validation block looked it up as 'windowsterminal.profileTemplate' (camelCase), which never matches, so the terminal profile template's mode/size/location checks silently never ran. Every other config.get() in this function and the valid-keys list already use the lowercase form. Look up the lowercase key so the validation block executes. --- distributions/validate-modern.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/distributions/validate-modern.py b/distributions/validate-modern.py index 8b7fe90181..bb74965caf 100644 --- a/distributions/validate-modern.py +++ b/distributions/validate-modern.py @@ -452,7 +452,7 @@ def validate_config(path: str, valid_keys: list): else: warning(node, 'No shortcut.icon provided') - if terminal_profile := config.get('windowsterminal.profileTemplate', None): + if terminal_profile := config.get('windowsterminal.profiletemplate', None): validate_mode(terminal_profile, [oct(0o660), oct(0o640)], 0, 0, 1024 * 1024) if not terminal_profile.startswith(USR_LIB_WSL):