sudo graphical applications
I am pretty sure that used to be possible to execute graphical application by sudo
.
However, in Fedora 27, when I try to do this I get an error:
$ sudo gedit
[sudo] password for user:
No protocol specified
Unable to init server: Could not connect: Connection refused
(gedit:10151): Gtk-WARNING **: cannot open display: :0
How can I allow that? is it a limitations of Wayland?
Summary of accepted answer:
$ xhost +
access control disabled, clients can connect from any host
$ sudo gedit
It's a design decision in wayland for security reasons. AFAIK a common framework for granting wayland clients root priviledges in a safe way is under development.
For gedit in particular I found this: https://ask.fedoraproject.org/en/ques...