Useful or not, from you.
sway Question: How to launch root applications like gparted

Hello. I wonder what's the most convenient way of running applications which need root priviliges under sway.

sudo gparted
[sudo] password for asbachb: 
No protocol specified
Unable to init server: Could not connect: Connection refused

(gpartedbin:1059): Gtk-WARNING **: 11:35:36.413: cannot open display: :0
localuser:root being added to access control list
Error executing command as another user: No authentication agent found.
localuser:root being removed from access control list
That's a useful answer
Without any help

@asbachb: I use GNOME authentication agent to launch root applications. In my ~/.config/sway/config:

exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1