How to make Xamarin.Mac app “Open at Login”?
问题 I have a Xamarin.Mac app that needs to open automatically at login. How do I have my application get this setting without having to manually click on it? 回答1: I can give you a hint how to do it programmatically. For this approach you need to make use of calls to native libraries via DllImport . Following code will give you an idea how to proceed: //needed library const string DllName = "/System/Library/Frameworks/ApplicationServices.framework/ApplicationServices"; static LSSharedFileList () {