profile
viewpoint

Ask questionsQuestion: 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
gparted                                                                                                                                                  
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
swaywm/sway

Answer questions X0rg

@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
useful!
source:https://uonfu.com/
answerer
Xorg X0rg Between keyboard and chair. :penguin:
Github User Rank List