Skip to content

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

@sithembiso

Description

@sithembiso

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions