I've created a Linux installer that request root user. Then, in the "Finish Actions" section, I create an "Execute external program" action that should call my application executable (in particular I execute a shell script that sets LD_LIBRARY_PATH and then call the real executable).
When I execute my application (a Qt program), i get a "MyApplication: cannot connect to X server :0.0" error.
The question is: when I am in root mode to execute my application as simple user it's sufficient to set "Execute as Root" to "No"? If not, how can I do to execute my application with current real user?