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

Remove Login Item from settings on application uninstall (Mac) #87

Open
candreotti opened this issue Jul 4, 2018 · 0 comments
Open

Comments

@candreotti
Copy link

  • The target platform(s) the problem occurs on (Linux, Mac, Mac App Store, and or Windows): Mac
  • Node version (run node -v): v8.0.0
  • auto-launch version: v5.0.5
  • The options you're passing to auto-launch: {name: "app name", isHidden: true }
  • Are you using NW.js or Electron? Electron
    • If so, which version? v2.0.3
    • If you're using Electron, are you using auto-launch from the main process or a renderer process? main process
  • Can you reproduce this with a simple Hello World example app? yes
  • If needs be, would you be able to provide us with a simple app (as simple as possible) which reproduces the problem? yes

Hello, I am enabling auto-launch (using AppleScript method) on application startup, the Login Item appears correctly in settings and everything is working fine.
After first run the app is automatically launched on Mac startup.
I have noticed that uninstalling the application (by dragging it to the trash or by removing it using an app like appCleaner) the entry in the Login Item remains, without the icons, and with a yellow mark on the right and I have to manually remove it.
Is this an issue or am I missing something?
How can I instruct macOS to remove the Login Item when the relative application has been uninstalled?

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

1 participant