↓ Skip to main content
  1. Posts/

Auto-start applications in LXDE

·
Rubén Infante Docio
Author
Rubén Infante Docio
Software engineer

Introduction
#

LXDE is a lightweight desktop that I recommend for low-resource computers, old or multifunction home servers.

On many occasions we want to run an application every time our PC starts, so let’s see how to do it.

Steps
#

  1. We create a file in the LXDE configuration with the following command

    nano /home/NUESTROUSUARIO/.config/autostart/NOMBREAPP.desktop
  2. The content of the file will be as follows

    //NO COPIES LOS COMENTARIOS
    [Desktop Entry]
    Type=Application
    //Le daremos el nombre deseado
    Name=Boblight autostart
    //Un comentario descriptivo de su función
    Comment=Iniciar Boblight
    //Comando a ejecutar por ejemplo boblight
    Exec=boblightd
    //Le diremos si queremos que sólo se ejecute en sesiones LXDE
    OnlyShowIn=LXDE
  3. Press Crtl + o and then CTRL + X

In this way, every time we log in with our LXDE environment, the boblight daemon (boblightd) will be executed, but it could be anything else.

Related