创建没有沙盒的助手应用程序 [英] Create a helper app without Sandboxing

查看:75
本文介绍了创建没有沙盒的助手应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我找到了几个指南(此处此处此处)介绍如何创建帮助应用程序以在登录时启动主应用程序.但是,由于我的应用程序不是通过 App Store 分发的,我不想启用沙盒,而且我发现的所有解决方案都需要对辅助应用程序和主应用程序进行沙盒处理.

I've found several guides (here, here, and here) on how to create a helper app to launch a main app on login. However, as my app is not distributed through the App Store, I do NOT want to enable sandboxing, and all of the solutions I've found require both the helper app and the main app to be sandboxed.

有没有什么方法可以创建一个帮助应用程序来在登录时启动主应用程序而不需要使用沙箱?

Is there any way to create a helper app to launch a main app at login WITHOUT requiring the use of sandboxing?

推荐答案

您可以使用 [NSWorkspace launchApplication:] 从您的助手启动您的应用程序.

You can use [NSWorkspace launchApplication:] to launch your app from your helper.

这篇关于创建没有沙盒的助手应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆