I have a c++ OpenGLES application that runs perfectly from the terminal (I have a non GUI setup, booting in console mode). If I launch my app at the prompt by typing ./myapp, everything is OK. Now I want to launch the app automatically when the Pi starts.
I have tried rc.local, .bashrc, no way. My app needs several files located in the same directory as the app, and that seemed to be (one of) the problem. Finally with systemd, I can launch my program (specifying WorkinDirectory=), but then the screen is just all black.
Any ideas ???