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

Error: no such file or directory during installation on macOS Monterey #105

Open
sithembiso opened this issue Feb 14, 2022 · 0 comments
Open

Comments

@sithembiso
Copy link

sithembiso commented Feb 14, 2022

I had the error reported by a user of our service this morning.

Error: open /Users/<username>/Library/LaunchAgents/service.plist: no such file or directory

It looks like on macOS Monterey, the ~/Library/LaunchAgents directory does not exist. I can also see that we don't attempt to create it during installation here:

file, err := os.Create(srvPath)

I think we should always ensure that the directory exists before os.Create(). Am I mistaken? If not, I don't mind sending a PR.

@sithembiso sithembiso changed the title Error: open /Users/<username>/Library/LaunchAgents/service.plist: no such file or directory Error: no such file or directory during installation on macOS Monterey Feb 14, 2022
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