<html>
<head>
<base href="https://bugzilla.gnome.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED NOTABUG - [wayland] can't run application as root using sudo"
href="https://bugzilla.gnome.org/show_bug.cgi?id=772875#c7">Comment # 7</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED NOTABUG - [wayland] can't run application as root using sudo"
href="https://bugzilla.gnome.org/show_bug.cgi?id=772875">bug 772875</a>
from <span class="vcard"><a href="page.cgi?id=describeuser.html&login=mo.mashi69%40gmail.com" title="thebunnyrules <mo.mashi69@gmail.com>"> <span class="fn">thebunnyrules</span></a>
</span></b>
<pre>(In reply to Matthias Clasen from <a href="show_bug.cgi?id=772875#c1">comment #1</a>)
<span class="quote">> 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</span >
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.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>