diff --git a/DuckDuckGo/AppDelegate/AppDelegate.swift b/DuckDuckGo/AppDelegate/AppDelegate.swift index f88b7cf40c..80da1c2b98 100644 --- a/DuckDuckGo/AppDelegate/AppDelegate.swift +++ b/DuckDuckGo/AppDelegate/AppDelegate.swift @@ -25,10 +25,22 @@ final class AppDelegate: NSObject, NSApplicationDelegate { let launchTimingPixel = TimedPixel(.launchTiming) +#if DEBUG static var isRunningTests: Bool { ProcessInfo.processInfo.environment["XCTestConfigurationFilePath"] != nil } + let disableCVDisplayLinkLogs: Void = { + // Disable CVDisplayLink logs + CFPreferencesSetValue("cv_note" as CFString, + 0 as CFPropertyList, + "com.apple.corevideo" as CFString, + kCFPreferencesCurrentUser, + kCFPreferencesAnyHost) + CFPreferencesSynchronize("com.apple.corevideo" as CFString, kCFPreferencesCurrentUser, kCFPreferencesAnyHost) + }() +#endif + let urlEventHandler = URLEventHandler() private let keyStore = EncryptionKeyStore()