Timeshift on Hprland

Hello,i’m new in endeavour OS,and now i seem to get a problem:
When I opened timeshift in Hyprland to backup the system,timeshift doesn’t seem to open properly.Then,i tried to open it from the terminal,and then i got this message:

Authorization required, but no authorization protocol specified
(timeshift-gtk:52520): Gtk-WARNING **: 20:26:12.166: cannot open display: :1

So i wanna know is there a solution?please tell me if you know.Thanks!

Check that you have a polkit agent installed and it is being started in your config somewhere. For example:

sudo pacman -S polkit-gnome

Add to your Hyprland config:

exec-once = /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1