Code: Select all
#!/bin/sh
# start VLC
vlc --fullscreen "/media/pi/Room media center"
exit 0
Code: Select all
#!/bin/sh
# start VLC
vlc --fullscreen "/media/pi/Room media center"
exit 0
By default RPi OS uses the global autostart here:ricardoaraujo00 wrote: ↑Thu Jul 02, 2020 8:59 amYou just have to edit this file
sudo nano .config/lxsession/LXDE-pi/autostart
Add this command to run a script (in this example is called shboot.sh)
@lxterminal -e /home/pi/shboot.sh
Inside that script(shboot.sh) put what you want and make it executable with "sudo chmod 755 filename"
I put those kind of scripts(shboot.sh) in my home folder..
Now it will run on LXDE desktop startup
Code: Select all
/etc/xdg/lxsession/LXDE-pi/autostart Code: Select all
/home/pi/.config/lxsession/LXDE-pi/autostart