Just a heads up, you do understand that this is a feature , not a bug ? https://bugzilla.redhat.com/show_bug.cgi?id=1274451
That bug is 2 years old and marked as "Status: CLOSED WONTFIX" both with Fedora and upstream with Wayland See https://fedoraproject.org/wiki/How_to_debug_Wayland_problems#Graphical_applications_can.27t_be_run_as_root_from_terminal And https://lists.fedoraproject.org/archives/list/devel%40lists.fedoraproject.org/thread/A6VXI4WAGSIIWGOTAVNDBVS4VFYXITHA/#2YU2RBYCXQSCGHGP772W5LRXUMTSINHA XWayland bug report (from 2015) https://bugs.freedesktop.org/show_bug.cgi?id=91071 Bottom line: This is considered a part of wayland security and will not be resolved upstream. The upstream solution is to run graphical apps from the menu, not the command line. Up to Ubuntu how to "resolve" this "problem" but Fedora decided 2 years ago to work on the grahpical tools. xhost is a work around for now and will remain so as long as apps have xwayland support. ** Bug watch added: Red Hat Bugzilla #1274451 https://bugzilla.redhat.com/show_bug.cgi?id=1274451 ** Bug watch added: freedesktop.org Bugzilla #91071 https://bugs.freedesktop.org/show_bug.cgi?id=91071 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1713313 Title: Unable to launch pkexec'ed applications on Wayland session To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apport/+bug/1713313/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs