- Preferences → Users & Groups → Login Items
- sudo rm /Library/LaunchAgents/net.pulsesecure.pulsetray.plist
- open /Applications/Pulse\ Secure.app/Contents/Plugins/JamUI/PulseTray.app
每次要使用都要下指令也很麻煩,在這邊使用Mac內建的程式Automator把這個指令包裝成一個icon,之後只要點擊這個icon就可以執行。製作步驟如下:
- 打開Automator
- 選擇Application
- 加入動作Run Shell Script
- 使用/bin/bash,加入指令
open /Applications/Pulse\ Secure.app/Contents/Plugins/JamUI/PulseTray.app - 儲存,命名為PulseSecure
參考資料
- Stop Pulse Secure from opening at startup Mac
- How to create dock icon for running terminal command in Mac OS
- Run a shell script on OS X without having a terminal window appear?
沒有留言:
張貼留言