문제

I have a Xamarin.Mac C# application that needs to run as a hidden daemon.
How do I tell my app to not show it's icon in the OS X dock?

Thanks!

EV

도움이 되었습니까?

해결책

You can edit the Info.plist file in your project, create a new property on the Source tab of "Application is agent (UIElement)", and set it to the string of "1".

This is the same as manually setting LSUIElement to 1 in a text editor and tells OS X to launch the application as an agent.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top