How to Setup Raspberry Pi Autostart GUI Application

Auto start apps on raspberry pi

Auto starting any GUI applications without any risk. Here is the simple and one and only working way to setup Raspberry pi Autostart GUI application using simple terminal codes.

Share Button

Auto start application using LXDE desktop environment

To auto-start an application on a Raspberry Pi, you can use the autostart feature of the LXDE desktop environment, which is the default desktop environment for Raspbian. Here’s a step-by-step guide:

  • Open a terminal on your Raspberry Pi or connect to it via SSH.
  • Open the autostart file using the following command:
sudo nano /etc/xdg/lxsession/LXDE-pi/autostart
LXDE autostart raspberry pi
  • In the autostart file, you can add the command to start your desired application. For example, to auto-start the Chromium web browser, you can add the following line:
Lxsession to autostart an application on raspberry pi
@chromium-browser
Autostart chromium browser on raspberry pi using terminal command
  • You can use any installed application to enter for auto start. In this same way you can auto start chia Blockchain gui application.
  • Save the changes and exit the text editor. In nano, you can do this by pressing Ctrl + X, then Y, and finally Enter.
  • Reboot your Raspberry Pi for the changes to take effect:
Sudo reboot

You are done. After the Raspberry Pi restarts, the specified application should automatically start. Make sure you have the required application installed on your Raspberry Pi before attempting to auto-start it.

Akhil Satheesh

Akhil Satheesh

👋 Hello there! I'm Akhil Satheesh, Founder and CEO of Solderingmind.com. I am an expert in building innovative electronic circuit and PCB designing. Most of the tested electronic projects are sharing with you.

Articles: 408

Leave a Reply

Your email address will not be published. Required fields are marked *