Hello @Forti61, The behavior you have looks completely normal, and your PDF well summarize it :
Graphical application cannot be executed by root user, but only by weston.
If your IDE execute your program as root user, it will not work
I do not know your editor, but you certainly have a way to execute your program with a different user privilege.
Kind regards, Erwan.
In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.