有什么方法可以确定应用程序启动或启动的方式(即主屏幕点按,四指滑动,siri等)? 有这个线程是相似的(Determining whether iOS application was launched via Siri),但没有太多的答案在这。这也适用于Mac OSX(How can a Mac app determine the method used to launch it?),但我需要类似
的应用程序,我将如何去创建一个快捷方式或其他类型的应用程序,我可以直接点击使用这个命令: open -a /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --args --ignore-certificate-errors
我是相当新的这一点。