为 MAC OSX 一起分发启动代理和应用程序

发布于 2024-12-02 18:36:07 字数 275 浏览 5 评论 0原文

我正在尝试解决以下问题。

该应用程序旨在为通过 USB 连接的手机提供定制备份。当手机连接到系统时,应启动该应用程序。

我已经编写了如下组件。 1. 一个守护程序,用于检测特定 USB 何时连接,然后启动应用程序。 2. 执行备份的应用程序。

我需要将这两件事绑定在一起。我浏览了启动代理的文档。但是,还有更多关于在登录/注销或系统启动/关闭期间启动主备份应用程序的信息。

你能帮我解决这个问题吗?

我真的很感谢你的帮助。

谢谢, 基肖尔

I am trying to solve the following problem.

The application is aimed to provide customized backup for a phone connected through the USB. When the phone is connected to the system, the application should be launched.

I already wrote the components as follows.
1. A Daemon that detects when the specific USB is connected and then launches the application.
2. The Application that performs the backup.

I need to bind these two things together. I went through the documentation for Launch Agents. But there are more about making the main backup application launch during login/logout or system startup/shutdown.

Can you please help me in solving this?

I really appreciate your help.

Thanks,
Kishore

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

勿忘初心 2024-12-09 18:36:07

将守护程序应用程序的 launchd plist 添加到 /Library/LaunchDaemons 目录

有关执行此操作的更多详细信息,请参阅:
http://developer.apple.com/ Library/mac/#documentation/MacOSX/Conceptual/BPSystemStartup/Chapters/CreatingLaunchdJobs.html

或 Daemons 部分
http://developer.apple.com/library/mac/#technotes /tn2083/_index.html

Add a launchd plist for your Daemon application to the /Library/LaunchDaemons directory

For more details on doing this refer:
http://developer.apple.com/library/mac/#documentation/MacOSX/Conceptual/BPSystemStartup/Chapters/CreatingLaunchdJobs.html

or Daemons section of
http://developer.apple.com/library/mac/#technotes/tn2083/_index.html

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文