SDL2 apps wont launch from frontend. If run explicitly from terminal, the frontend interfares

When I try to run my SDL2 game from the “Ports” folder. It shows a black screen and then goes back to frontend. If ran from SSH, the game launches but button presses goes to frontend and the frontend appears in parts like a glitched image.

Any help would be highly appreciated

This is more for the portmaster discord, but what does the log say

Also, the graphical glitches are from not stopping the frontend properly, which is something handled by the launch scripts.

I am not using portmaster. In RetroPie, I used “Ports” folder to put my .sh files

In that case, I would definitely talk to the portmaster discord, they have tips for getting things to run on these devices. You can also look at one of their ready to run ports for a sample of how to setup the environment to run your application.

Also, you are running muOS on an Anbernic, correct?

yes. RG34XXSP is my device