Waybar startup times out on Hyprland -- something to do with org.freedesktop.portal?

I’m working on a hyprland setup with Waybar. For a while, I was using sddm, but I switched to ly recently because sddm is ugly without Plasma installed. However, after switching to ly, waybar fails to start. Here’s the output:

[2024-11-28 12:38:37.697] [info] Using configuration file /home/devin/.config/waybar/config
[2024-11-28 12:39:02.198] [error] Error calling StartServiceByName for org.freedesktop.portal.Desktop: Timeout was reached

The weirdest thing is this: when i rebuild my system, waybar starts working again. It doesn’t seem to matter if I change anything about the config. On startup, waybar doesn’t load. But, if I rebuild the system, it works again.

What the hell is up here?