Bug: Mailspring was unable to create or delete the LaunchAgent file
Describe the bug When I try to disable "Launch on system start", I get this error:
I wanted to use the "Login Items" feature of macOS so I could hide Mailspring on start, which doesn't seem achievable just using the "Launch on system start" feature in Mailspring.
To Reproduce Steps to reproduce the behavior:
- Go to Preferences
- Try to untick "Launch on system start"
Error above received.
Expected behavior I expected no error to appear and for the box to get unticked.
Screenshots See above.
Setup: (please complete the following information):
- OS: macOS
- OS Version 10.14.6
- Mailspring Version: 1.7.6
Additional context I only recently installed Mailspring.
Hey thanks for reporting this! I'll see if I can reproduce this - I wonder if something changed in macOS 10.14.
I just installed Mailspring (through Homebrew) and am seeing the exact same error message on Catalina 10.15.6.
Same On High Sierra 10.13.6
Mailspring was unable to create or delete the LaunchAgent file at /Users/designlab/Library/LaunchAgents/com.mailspring.plist.
Error: ENOENT: no such file or directory, open '/Users/designlab/Library/LaunchAgents/com.mailspring.plist'
came wile swishing to debug flags
I get the same message after installing via homebrew brew install --cask mailspring

This issue has been mentioned on Mailspring Community. There might be relevant details there:
https://community.getmailspring.com/t/mailspring-was-unable-to-create-or-delete-the-launchagent-file/708/1
We are in the process of migrating issues to Discourse, which can better facilitate discussion and discovery, and so GitHub Issues can focus on issues that are confirmed and slated for resolution in the near term. Learn more about the changes here.
As part of this, we've migrated this issue to Discourse:
https://community.getmailspring.com/t/mailspring-was-unable-to-create-or-delete-the-launchagent-file/708
Please consider joining that community and continuing the discussion there! Votes on the issue on Discourse will help raise its priority in our planning.
@squintgit @RavHilton @designlabmx @cabbage: if you join and reply to the issue, the moderators can make an effort to reassign your posts to you, so you get the credit for them.
We're closing and locking the issue here as part of this migration. Rest assured, this doesn't mean the issue is being discarded or ignored.
We hope to see you on Discourse soon!
-The Mailspring Team
Hey @squintgit,
Thanks for reporting this - and thanks to everyone else who added their reports on this thread. This was a persistent macOS issue that we've since resolved.
The LaunchAgent file creation/deletion issue has been fixed in recent releases. You can download the latest version at https://getmailspring.com/download.
Give it a spin and let us know if the "Launch on system start" toggle works smoothly now. If you have any other issues, feel free to report them on our community forums at https://community.getmailspring.com.
Thanks for your patience!