From 1a10cf2e5f87cd8eb421ef77f6ce764b5482515e Mon Sep 17 00:00:00 2001 From: undergroundwires Date: Sat, 15 Jun 2024 08:32:58 +0200 Subject: [PATCH] win: fix text and handwriting script omission #369 This commit corrects a syntax error that prevented the 'Disable text and handwriting data collection' script from being included since version 0.13.4. The error was identified in a previous syntax validation update (commit 6ecfa9b954edc10401acaf5c735eec0fc9f991cd). Changes: - Add a missing dash before 'Disable location access' category. This fixes the script omission as reported in the issue #369. - Remove the dash from `revertCode` of `HarvestContacts` registry modification code, fixing the revert code for 'Disable text and handwriting data collection' script. This fix addresses the build errors introduced by stricter syntax checks and ensures that the script is now properly recognized and executed. This fix is part of ongoing efforts to improve data handling robustness and management in script processing. --- src/application/collections/windows.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/application/collections/windows.yaml b/src/application/collections/windows.yaml index 1f878f7e..44d3dc49 100644 --- a/src/application/collections/windows.yaml +++ b/src/application/collections/windows.yaml @@ -4311,7 +4311,8 @@ actions: parameters: code: reg add "HKCU\SOFTWARE\Microsoft\InputPersonalization\TrainedDataStore" /v "HarvestContacts" /t REG_DWORD /d 0 /f revertCode: |- # Default value: `1` since Windows 10 21H2, Windows 11 23H2 - reg add "HKCU\SOFTWARE\Microsoft\InputPersonalization\TrainedDataStore" /v "HarvestContacts" /t REG_DWORD /d 1 /f - + reg add "HKCU\SOFTWARE\Microsoft\InputPersonalization\TrainedDataStore" /v "HarvestContacts" /t REG_DWORD /d 1 /f + - category: Disable location access children: -