Hi,
I would like to run a Python script at boot, just before to run ES.
Usually, eg with RaspBian, I did it in the /etc/rc.local file and it works fine.
With RetroPie it doesn’t work. The only solution I found is to run my script in the /etc/profile file.
The problem is my script is re-executed one more time each time I leave ES (with F4). Even if I go back later in ES. I guess that is because when leaving ES, it opens a new user session who run again the /etc/profile file.
Where should I put my script, to be ran only once at boot time?
Thx a lot.
Matock