sindresorhus / Plash

💦 Make any website your Mac desktop wallpaper
https://sindresorhus.com/plash
MIT License
3.53k stars 130 forks source link

Does not load sometimes #71

Closed imaverage closed 3 years ago

imaverage commented 3 years ago

Describe the bug

Oftentimes when I load the computer, Plash isn't visible. Even if i go to the menu and click reload. I have to manually kill the app and restart it and it works.

To reproduce

Steps to reproduce the behavior:

  1. Set plash to start on load
  2. Restart mac
  3. Nondeterministically, notice it isn't visible until you kill and restart the app
  4. notice its now visible after restart

Expected behavior

Should be visible on login. Alternatively/additionally, a way to tell the app to refresh (like via applescript).

Screenshots

If applicable, add screenshots to help explain your problem.

Info

Additional context

Add any other context about the problem here.

imaverage commented 3 years ago

If I had to guess, I'd say it's something about the application not mounting or being laid onto the desktop properly.

sindresorhus commented 3 years ago

Can you check if you can reproduce this with the App Store version of Plash too? Just to rule out recent changes in Plash being the cause.

sindresorhus commented 3 years ago

Hmm, maybe Plash launches before your computer is able to connect to the internet, and since it's not connected, it gets into a weird state or something. I'm just guessing, as I haven't yet been able to reproduce this.

sindresorhus commented 3 years ago

Did you have "browsing mode" activated?

imaverage commented 3 years ago

Hmm, maybe Plash launches before your computer is able to connect to the internet, and since it's not connected, it gets into a weird state or something. I'm just guessing, as I haven't yet been able to reproduce this.

probably not. I turned off plash, turned off my wifi (and not connected to anything), and opened plash and it loads the widgets fine but the widgets are empty (as they widgets pull from internet). its a locally complied react html app.

Did you have "browsing mode" activated?

yes

sindresorhus commented 3 years ago

Can you check if you can reproduce this with the App Store version of Plash too? Just to rule out recent changes in Plash being the cause.

imaverage commented 3 years ago

My app store download didn't finish, just gets stuck at 99% :/.

That said, I was able to reproduce it consistently by doing this:

sindresorhus commented 3 years ago

I think I found a fix to this. Can you test? https://dsc.cloud/sindresorhus/Plash.app-1613643403

Your issue is happening because Plash opens in the current space, and fullscreen windows are "Spaces", so Plash opens behind the Chrome window. I'm now forcing Plash to not open in spaces that are fullscreen windows.

imaverage commented 3 years ago

works great