I have the preference set to not launch on System Startup. I, personally, do not ever want the Workstation App to execute because I'm only installing it for the cli interface.
Describe the problem
Upon reinstall/upgrade, the startup preference is ignored and the Workstation App is launched and added to the System Tray
Software Version
macOS 11 (or 12)
Homebrew, though this seems irrelevant since the install is a .pkg file.
Chef Workstation version: 21.8.555
Chef Infra Client version: 17.3.48
Chef InSpec version: 4.38.9
Chef CLI version: 5.4.1
Chef Habitat version: 1.6.351
Test Kitchen version: 3.0.0
Cookstyle version: 7.15.4
Replication Case
- Install Chef Workstation
- Disable the "Start Workstation App on system startup" option
- Exit app
- Reinstall/upgrade Chef Workstation
The workstation app is launched both during the upgrade process and continuously after rebooting/logging in to the system.
io.chef.chef-workstation.app.plist
is re-added to ~/Library/LaunchAgents
with
<key>RunAtLoad</key>
<true/>
Opening the workstation app correctly displays that the preference is set to off, but it opens anyway. Toggling the preference on or off in the Workstation App preferences pane does not modify the setting stored in the plist, so it's not clear where the preference is being stored.
The presence of the plist file is what is triggering the app to load on startup.