简体   繁体   English

更改SMJobBless对话框的文本

[英]Changing text of SMJobBless dialog

I want to run a privileged helper tool as a one-off thing when required, and I'm using SMJobBless to do this. 我想在需要时一次性运行特权帮助器工具,并且我正在使用SMJobBless来完成此任务。 However, the text and button of the authorization dialog box imply that the app is trying to install a helper tool, perhaps one that may permanently run in the background ( screenshot ). 但是,授权对话框的文本和按钮表示该应用正在尝试安装一个辅助工具,该工具可能永久在后台运行( 屏幕截图 )。 But I don't want users to get the wrong impression. 但是我不希望用户得到错误的印象。 So is there any way to get the old type of dialog box back, which simply said: <App> wants to make changes. Type your password to allow this. 因此,有什么方法可以找回旧类型的对话框,该对话框简单地说: <App> wants to make changes. Type your password to allow this. <App> wants to make changes. Type your password to allow this. ? I understand that for security reasons Apple wouldn't allow customizing the text, but it should at least allow reverting to the old-style dialog box. 我了解出于安全原因,Apple不允许自定义文本,但至少应允许还原到旧式对话框。

这可以在使用kAuthorizationEnvironmentPrompt创建AuthorizationRef kAuthorizationEnvironmentPrompt

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM