Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5420

Staffroom, classroom and projects • Re: How to force the 3B to play a looped fullscreen vid on startup?

$
0
0
Thank you for your inputs.

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
Then I added:

Code:

sh /home/pi/Vidéos/loop2.sh
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!

Statistics: Posted by MaillefertM — Mon Jan 29, 2024 7:40 am



Viewing all articles
Browse latest Browse all 5420

Trending Articles