Helper app will not launch main App if App is marked as Agent

Originator:utugau
Number:rdar://33398662 Date Originated:july 19, 2017
Status:open Resolved:no
Product:MacOS Product Version:10.10
Classification:Serious Reproducible:always
 
I have this app that has no windows. It just sits on the menu bar. It is not a service or a daemon. Just an app with no windows.

I add the key "Application is agent (UIElement)" = YES to its Info.plist. This app has a helper to make it launch at login.

The helper will not launch this app. The helper runs but does not launch the app.

I make "Application is agent (UIElement)" = NO and everything works.

Steps to Reproduce:
Create an app that just sits on the menu bar, add Application is agent (UIElement) YES to Info.plist and make this app launch at login.

app will not launch.

turn Application is agent (UIElement) NO
app will launch

Expected Results:
helper should launch app

Observed Results:
helper runs but fails to launch app

Version:
10.12.5

Notes:

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!