Macos 在启动Mac时停止脉冲安全打开
我已经安装了Pulse Secure VPN实用程序版本5.2.5,它会在启动时自动打开。不幸的是,该应用程序的行为与其他应用程序不同,即我无法通过以下方式禁用它:Macos 在启动Mac时停止脉冲安全打开,macos,vpn,pulsesecure,Macos,Vpn,Pulsesecure,我已经安装了Pulse Secure VPN实用程序版本5.2.5,它会在启动时自动打开。不幸的是,该应用程序的行为与其他应用程序不同,即我无法通过以下方式禁用它: System Preferences → Users & Groups → Login Items 我在互联网上做了一些研究,发现负责启动的文件是: /Library/LaunchAgents/net.pulsesecure.pulsetray.plist 如果我删除该文件,Pulse Secure在启动时不会打开,但每
System Preferences → Users & Groups → Login Items
我在互联网上做了一些研究,发现负责启动的文件是:
/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>
标签
net.pulsesecure.pulsetray
LimitLoadToSessionType
水绿色
程序参数
/Applications/Pulse-Secure.app/Contents/Plugins/JamUI/PulseTray.app/Contents/MacOS/PulseTray
持久连接
残废
/Library/LaunchAgents/net.pulseseecure.pulsetray.plist
这样它就不会在每次启动时自动启动Pulse-Secure
/Applications/Pulse-Secure.app/Contents/Plugins/JamUI
PulseTray
open /Applications/Pulse\ Secure.app/Contents/Plugins/JamUI/PulseTray.app
launchctl unload /Library/LaunchAgents/net.juniper.pulsetray.plist
完成后,再次关闭PulseTray。以下是解决方案的基本思路: Mac上没有系统配置开关来防止Pulse Secure自动启动 因此,我们必须使用Automator创建一个应用程序,以便在系统引导期间运行以下脚本:
launchctl unload –w /Library/LaunchAgents/net.pulsesecure.pulsetray.plist
或(取决于Pulse Secure的不同版本,plist文件具有不同的名称)
以下是操作方法: 首先,创建一个自动程序应用程序 将其另存为应用程序,如
stoppelsesecure.App
然后将此应用程序添加到您的登录项目中:
System Preferences → Users & Groups → Login Items
完成如本文所述,从终端:
open /Applications/Pulse\ Secure.app/Contents/Plugins/JamUI/PulseTray.app
launchctl unload /Library/LaunchAgents/net.juniper.pulsetray.plist
从终端输入
步骤1:
cd /Library/LaunchAgents/
步骤2:
sudo rm net.pulsesecure.pulsetray.plist
或
关键是删除相关的.plist,以便应用程序不会在每次启动时自动加载。我为解决此问题所做的是:
- 在/Library/LaunchAgents/net.juniper.pulsetray.plist(以root或sudo vim在终端记录)处注释所有行(在每行的开头添加#)
- 在终端中运行此命令:source~/.bashrc
如果你想让事情像以前一样工作,那么只需从该文件中删除注释。在我的情况下,位置有点不同:/Applications/Junos\Pulse.app/Contents/Plugins/JamUI/PulseTray.app/Contents/MacOS/PulseTray一旦删除plist,还可以在应用程序文件夹中创建PulseTray.app的别名,以允许从command+space搜索选项启动它。这不会停止客户端启动,而是在客户端运行时禁用托盘图标。所以你可能看不到它在后台运行。在High Sierra,我不得不
launchctl remove/Library/LaunchAgents/net.pulseseecure.pulsetray.plist
-unload
更改为remove
注释掉所有与脉冲相关的Launch{Daemon/Agent}
找到的文件似乎都能正常工作!我能够在~/Library/LaunchAgents/Library/LaunchAgents/Library/LaunchDaemons/System/Library/LaunchAgents/System/Library/LaunchDaemons中找到d的文件;找到$d-iname'*pulse*'-打印;完成
。我能够使用XML注释格式
对文件进行注释。对于那些不熟悉语法的人:只需将
放在文件末尾的一行就可以注释掉整个文件。TrinitronX的这条注释是最好的答案,因为它是非破坏性的,只起作用,可惜它埋在了底部。