Run X app under root privilege

HI ,
I use putty to login SLES server. I did “enable X11 forwarding” on putty and in “/etc/ssh/sshd_config”, X11Forwarding yes . When I run ./installgui in putty with my account, GUI of application is opened. However, my application requires root privilege to run. So, I use command sudo ./installgui. And i got error like this: “PuTTY X11 proxy: wrong authentication protocol attempted08:05:14 PM: Error: Unable to initialize GTK+, is DISPLAY set properly?”
Can somebody help me solve this issue. I need to run app via sudo comand .
Thanks

Run it with gnomesu, for example; gnomesu awesomeapp

Great. Thanks so much Miuku. I searched many ways on google. But just only you can provide me the best solution. Thanks so much. Thanks SUSE forum :slight_smile:

The more because this is NOT the SUSE forum, but the openSUSE forum.
The SLES/SLED forum is here: Rancher Labs

Nevertheless, the followining information is rather distro independant: SDB:Login as root - openSUSE Wiki

Noted. Thanks mod :slight_smile: