Skip to content

[bug] If the wallpaper file is in use on MacOS, it cannot be overwritten again #20

@myhoger

Description

@myhoger

//file, err := os.Create(filepath.Join(cacheDir, "wallpaper"))
tsNano := strconv.FormatInt(time.Now().UnixNano()/1e6, 10)
file, err := os.Create(filepath.Join(cacheDir, "wallpaper"+tsNano))

If the wallpaper file is in use on MacOS, it cannot be overwritten again;
Add the time parameter to the temporary file wallpaper to solve this problem

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