fix: some apps were not showing (closes #677, closes #679)

This commit is contained in:
Louis Pontoise authored and lwouis committed 2020-11-10 02:19:20 +09:00
1 parent cde1adc664
commit e0fa68036e
1 file changed
+2 -1
+2 -1
View File
@@ -101,8 +101,9 @@ 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 (app.activationPolicy != .prohibited || isAndroidEmulator(app)) && isNotXpc(app) && !app.processIdentifier.isZombie()
return (isNotXpc(app) || isAndroidEmulator(app)) && !app.processIdentifier.isZombie()
}
private static func isNotXpc(_ app: NSRunningApplication) -> Bool {