fix: use lowercased key when validating windowsterminal.profileTemplate (#40911)
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.
Syed Osama Ali Shah committed
Jul 1, 2026 at 01:52 UTC
ff909ed09b81b8225e3583d6040a5d25a8949adc
1 file changed
+1
-1
distributions/validate-modern.py
+1
-1
@@ -452,7 +452,7 @@ def read_tar(node, file, elf_magic: str):
452
else:
453
warning(node, 'No shortcut.icon provided')
454
455
- if terminal_profile := config.get('windowsterminal.profileTemplate', None):
455
+ if terminal_profile := config.get('windowsterminal.profiletemplate', None):
456
validate_mode(terminal_profile, [oct(0o660), oct(0o640)], 0, 0, 1024 * 1024)
457
458
if not terminal_profile.startswith(USR_LIB_WSL):