When running any gui for another user with (su) it run, but if we try with (sudo) it can't run!! with error messages like (cannot open display).
sudo strips the $XDG_RUNTIME_DIR environment variable required for this to work. A decent sudo implementation could, for instance, bind the Wayland sockets in the user's session into the new one. There is nothing we can do about this.
The problem in Wayland only !!!!
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.