Junos Pulse Automatically Opens at Startup.
...How can I disable the auto-open and use it as needed from the Dock?
Early 2009 iMac, Build 13C64, Mavericks 10.9.2
iMac
Apple Event: May 7th at 7 am PT
...How can I disable the auto-open and use it as needed from the Dock?
Early 2009 iMac, Build 13C64, Mavericks 10.9.2
iMac
I used a "Run Shell Script" Automator action (bin/bash) with the following syntax:
value=$(launchctl list | grep -ic "net.juniper.pulsetray")
if [ $value -eq 0 ]
then
launchctl load -w /Library/LaunchAgents/net.juniper.pulsetray.plist; echo "Started"
else
launchctl unload -w /Library/LaunchAgents/net.juniper.pulsetray.plist; echo "Stopped"
fi
This action was fed to a "Run Applescript" action with the following syntax:
on run {input, parameters}
display dialog input as text
end run
Then I save as an application named "Toggle Juno VPN.app" and placed it in the ~/Library/Scripts directory. The toggle now lives in the scripts menu item on the menu bar.
To start Junos, for use, simple click on the scripts icon on menu bar, select the application/script and it will start. You can then make a connection (existing), or you can then start the GUI and create a new connection.
When you are done with connecting through Junos, go select the application/script again. This will unload it.
Juno does not persist through a reboot and will not autolaunch (assuming you use the toggle off).
A Launch Agent is meant to start a process when a user logs in. To prevent that from happening, just remove the Launch Agent plist from the LaunchAgents folder.
See eeswayze's post on how to then start up the app.
My way keeps everything "in place" and persisted through upgrades (OS and VPN) up until - Sierra . Now, Pulse Secure does not work above 5.0.3 until version 5.2.5(869). However, that version change to Pulse Secure (5.2.5(869)) from Juno Pulse, breaks my solution - even accounting for path and name changes.
That said, removing the plist and creating an alias works to some degree. However, it is problematic when exiting. For a period of about 3 to 5 minutes, one has no internet/network access. I think it is crashing/exiting ungracefully.
So it works, is not upgradable, and causes an oddity with networking.
On the bright side, 5.0.3 works - so crappy 5.2.5 is uninstalled and 5.0.3 is back in place.
Pretty presumptuous of a vendor making software that basically forces one to launch a UI component at login; that should be up to the user.
Junos Pulse Automatically Opens at Startup.