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

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

Open
myhoger opened this issue Dec 8, 2021 · 0 comments

Comments

@myhoger
Copy link

myhoger commented Dec 8, 2021

//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

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