Thank you for your inputs.
I actually found another solution:
First, a sh script:
Then I added:To /etc/xdg/lxsession/LXDE-pi/autostart which works.
I could have used bash to run my shell, but I have different processes running bash and none sh, which makes spotting it using "ps" easy.
Anyway thanks for your help!
I actually found another solution:
First, a sh script:
Code:
#!/bin/shsetterm -cursor offVIDEOPATH="/home/pi/Vidéos/"SERVICE="vlc"while true; doif ps ax | grep -v grep | grep $SERVICE != /dev/nullthensleep 100;elsefor entry in $VIDEOPATH/*doclearvlc -fL --no-audio file://$entrydonefidone
Code:
sh /home/pi/Vidéos/loop2.sh
I could have used bash to run my shell, but I have different processes running bash and none sh, which makes spotting it using "ps" easy.
Anyway thanks for your help!
Statistics: Posted by MaillefertM — Mon Jan 29, 2024 7:40 am