A simple bash script to run a grafical programm as root in wayland.
wayland-root-exec "command --example"
$ sudo cp wayland-root-exec /bin/wayland-root-exec
$ sudo chmod +x /bin/wayland-root-exec
This program is Free Software: You can use, study share and improve it at your will. Specifically you can redistribute and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.