我已经安装了瞻博网络的 Pulse Secure VPN 实用程序,它会在启动时自动打开。不幸的是,该应用程序的行为与其他应用程序不同,即我无法通过以下方式禁用它:
系统偏好设置?用户和组?登录项目
上网查了一下,发现负责启动开启的文件是:
/Library/LaunchAgents/net.pulsesecure.pulsetray.plist
如果我删除该文件,Pulse Secure 不会在启动时打开,但是每当我打开它时,它都不会按预期工作(不会连接到任何 VPN)。
有谁知道如何防止它在启动时打开并使其同时工作?
如果有帮助,我附上文件的内容:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>net.pulsesecure.pulsetray</string>
<key>LimitLoadToSessionType</key>
<array>
<string>Aqua</string>
</array>
<key>ProgramArguments</key>
<array>
<string>/Applications/Pulse Secure.app/Contents/Plugins/JamUI/PulseTray.app/Contents/MacOS/PulseTray</string>
</array>
<key>KeepAlive</key>
<true/>
<key>Disabled</key>
<false/>
</dict>
</plist>
Run Code Online (Sandbox Code Playgroud)
https://kb.pulsesecure.net/articles/Pulse_Secure_Article/KB26679
\n\n使用 Automater 创建一个应用程序以在启动期间运行以下脚本:
\n\nlaunchctl unload \xe2\x80\x93w /Library/LaunchAgents/net.pulsesecure.pulsetray.plist
这可以防止 Pulse 在启动时启动。
\n\n保存此 .app 文件,并将其添加到您的登录项中
\n