Rather than running as root, it would be better for security to elevate privileges only when needed, rather than running the whole GUI as root. Running GUIs as root is also disabled by default with Xorg on some systems, and is entirely unsupported on Wayland.
Relates to previous discussion at: https://github.com/lpereira/hardinfo/issues/658, but still aught to be an issue on its own.
Rather than running as root, it would be better for security to elevate privileges only when needed, rather than running the whole GUI as root. Running GUIs as root is also disabled by default with Xorg on some systems, and is entirely unsupported on Wayland.