Skip to content

Commit

Permalink
Revert "Configurator: Apply config updates in non-daemon processes (#…
Browse files Browse the repository at this point in the history
…1003)" (#1008)

This reverts commit 1e88b88.
  • Loading branch information
russellhancox authored Jan 20, 2023
1 parent ebe5166 commit dcbbc33
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Source/common/SNTConfigurator.m
Original file line number Diff line number Diff line change
Expand Up @@ -1040,6 +1040,9 @@ - (id)forcedConfigValueForKey:(NSString *)key {
}

- (void)startWatchingDefaults {
// Only com.google.santa.daemon should listen.
NSString *processName = [[NSProcessInfo processInfo] processName];
if (![processName isEqualToString:@"com.google.santa.daemon"]) return;
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(defaultsChanged:)
name:NSUserDefaultsDidChangeNotification
Expand Down

0 comments on commit dcbbc33

Please sign in to comment.