Description of problem:
Graphical applications (both native Wayland and XWayland) don't work if launched as root.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Run any graphical app as root (sudo appname) when running on Wayland
Fails with "No protocol specified" and some other app-specific messages.
Graphical apps should work even when launched as root.
I hope I've selected the right package to report against (I am little unsure), if no, let me know and I'll report it to right place.
I don't know whether this is intended, but I think it is a feature. The rule is: "Never start GUI applications as root with sudo". For reasons why see https://help.ubuntu.com/community/RootSudo#Graphical_sudo , https://askubuntu.com/questions/270006/why-user-should-never-use-normal-sudo-to-start-graphical-application
Have you tried policykit? See `man pkexec`.
Thanks for your reply.
pkexec doesn't work (server init failed in gedit, other non-gnome apps have their specific errors).
I believe this is the same as bug 1274451.
*** This bug has been marked as a duplicate of bug 1274451 ***