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

Default wallpaper is shown for ≈0.5 sec #52

Open
daxro opened this issue Feb 23, 2019 · 3 comments
Open

Default wallpaper is shown for ≈0.5 sec #52

daxro opened this issue Feb 23, 2019 · 3 comments
Labels
💵 Funded on Issuehunt This issue has been funded on Issuehunt enhancement help wanted

Comments

@daxro
Copy link

daxro commented Feb 23, 2019

Issuehunt badges

When calling wallpaper.set('img/artwork.png') in a node app running on Mojave, the default wallpaper (not set via this API) is shown for approximately 0.5 sec. Is this a known issue? If so: any ways to get around it? Thanks.

There is a $60.00 open bounty on this issue. Add more on Issuehunt.

@sindresorhus
Copy link
Owner

sindresorhus commented Feb 24, 2019

Yes, it's working around a macOS bug where if you set the wallpaper to the same path as the current wallpaper, even though the image has changed, it doesn't update. See: https://github.com/sindresorhus/macos-wallpaper/blob/cd8b1a7de4432789b58119b08a93cd2a432b77c6/Sources/wallpaper/Wallpaper.swift#L65-L83

PR welcome for a better workaround.

@daxro
Copy link
Author

daxro commented Feb 24, 2019

Got it! Thanks for the prompt response. Then I'll probably just use unique filenames and then make use of your trash-repo. Cheers.

@IssueHuntBot
Copy link

@IssueHunt has funded $60.00 to this issue.


@issuehunt-oss issuehunt-oss bot added the 💵 Funded on Issuehunt This issue has been funded on Issuehunt label May 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💵 Funded on Issuehunt This issue has been funded on Issuehunt enhancement help wanted
Projects
None yet
Development

No branches or pull requests

3 participants