[Wayland-bugs] [Bug 772875] [wayland] can't run application as root using sudo
gtk+ (GNOME Bugzilla)
bugzilla at gnome.org
Sun Dec 31 00:34:20 UTC 2017
https://bugzilla.gnome.org/show_bug.cgi?id=772875
--- Comment #7 from thebunnyrules <mo.mashi69 at gmail.com> ---
(In reply to Matthias Clasen from comment #1)
> Not a bug, per se. Running graphical applications as root in this way is not
> the recommended way to go about things.
>
> If you insist,
> XDG_RUNTIME_DIR=/run/user/$PID gedit
> will work as root
Hello Matthias, this doesn't seem to work under Wayland, it gives the following
error:
Invalid MIT-MAGIC-COOKIE-1 keyUnable to init server: Could not connect:
Connection refused
(gedit:2228): Gtk-WARNING **: cannot open display: :0
I'm guessing that's due to Wayland's security restrictions.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/wayland-bugs/attachments/20171231/2de09676/attachment.html>
More information about the wayland-bugs
mailing list