I’m experimenting with Hyprland, in addition to my default Gnome desktop. I am pretty new to Arch and Endeavour (and linux generally).
I’m trying to figure out why something happens: if I open gedit (or another gui app) with root privileges (“sudo gedit”) while logged in with Gnome, the terminal asks for my password and the app opens. If I do the same when logged into Hyperland, I get this message:
Authorization required, but no authorization protocol specified
(gedit:17652): Gtk-WARNING **: 12:14:02.268: cannot open display: :0
I have polkit installed, and GUI applications are able to elevate to ask for root privileges. E.g., if I open a /etc/foo.bar with Kate, and try to save it, Kate will ask for root privileges and when I enter my PW, it can save the file.
This isn’t a big issue - I know that I could use a command line editor or Kate, etc. I’m trying to understand the why of it.
Thanks in advance.