diff --git a/src/logic/Applications.swift b/src/logic/Applications.swift index 41f88abf..9bad4f20 100644 --- a/src/logic/Applications.swift +++ b/src/logic/Applications.swift @@ -109,7 +109,7 @@ class Applications { private static func isActualApplication(_ app: NSRunningApplication) -> Bool { // an app can start with .activationPolicy == .prohibited, then transition to != .prohibited later // an app can be both activationPolicy == .accessory and XPC (e.g. com.apple.dock.etci) - return (isNotXpc(app) || isAndroidEmulator(app)) && !app.processIdentifier.isZombie() + return (isNotXpc(app) || isPasswords(app) || isAndroidEmulator(app)) && !app.processIdentifier.isZombie() } private static func isNotXpc(_ app: NSRunningApplication) -> Bool { @@ -126,6 +126,10 @@ class Applications { private static func notAltTab(_ app: NSRunningApplication) -> Bool { return app.processIdentifier != ProcessInfo.processInfo.processIdentifier } + + private static func isPasswords(_ app: NSRunningApplication) -> Bool { + return app.bundleIdentifier == "com.apple.Passwords" + } static func isAndroidEmulator(_ app: NSRunningApplication) -> Bool { // NSRunningApplication provides no way to identify the emulator; we pattern match on its KERN_PROCARGS