Search code examples
raspberry-piraspberry-pi3raspbianautostart

How to run an exe file on raspberry startup


I'm on the Raspbian version 4.19 (The last one) and I want to run a .exe at my Raspberry pi 3B+ startup. I found that I sould add to the autostart file the path of my .exe but I can't find it on my Raspbian version.

I found this path for the autostart file : ~/.config/lxsession/LXDE-pi/autostart

But in "/.config" I just have lxpanel and lxterminal...

Is someone here who already have the same issue ?


Solution

  • In the last Raspbian version, the autostart has been moved. It's now there:

    /etc/xdg/lxsession/LXDE-pi/autostart
    

    There you can add this line to execute your exe:

    @sudo mono MyPath.exe
    

    "mono" is here for windows executable, but you need to install it before "sudo apt-get install mono-complete"