Skip to content

Commit f0e5fee

Browse files
committed
playbook_parches: disable webview2 spawning from SearchHost
1 parent 438bfac commit f0e5fee

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

src/lib/core/miscellaneous/playbook_patches_command.dart

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ import 'dart:async';
22
import 'dart:io';
33

44
import 'package:args/command_runner.dart';
5+
import 'package:revitool/shared/win_registry_service.dart';
56
import 'package:revitool/utils.dart';
7+
import 'package:win32_registry/win32_registry.dart';
68

79
class PlaybookPatchesCommand extends Command<String> {
810
static const tag = "Playbook Patches";
@@ -32,5 +34,15 @@ class PlaybookPatchesCommand extends Command<String> {
3234
exit(0);
3335
}
3436

35-
Future<void> applyPatches() async {}
37+
Future<void> applyPatches() async {
38+
logger.i('$name: Applying patches...');
39+
// Disable WebView2 spawning from SearchHost
40+
// https://www.reddit.com/r/WindowsHelp/comments/1lfu325/comment/n2nk50h
41+
WinRegistryService.writeRegistryValue(
42+
Registry.localMachine,
43+
r'SYSTEM\ControlSet001\Control\FeatureManagement\Overrides\8\1694661260',
44+
"EnabledState",
45+
1,
46+
);
47+
}
3648
}

0 commit comments

Comments
 (0)