Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remember "Start on system startup" setting and follow preference on upgrades #423

Open
signe opened this issue Aug 9, 2021 · 1 comment

Comments

@signe
Copy link

signe commented Aug 9, 2021

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

  1. Install Chef Workstation
  2. Disable the "Start Workstation App on system startup" option
  3. Exit app
  4. 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.

@jriddle-sf
Copy link

jriddle-sf commented Mar 29, 2022

Screen Shot 2022-03-29 at 10 59 53 AM

Confirm that on MacOS (Version 12.3) that I have workstation unchecked but it continues to load on start-up. There is also no close button for the Advanced modal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants