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

Troubleshooting • Autostart bashscript with libcamera does not work

$
0
0
Hello,

I have the following simple bash script named "camera.sh":

Code:

#!/bin/bashexport DISPLAY=:0.0export XAUTHORITY=~/.Xauthoritysleep 10libcamera-hello --fullscreen -t 0
When I add the following line to /etc/rc.local, the libcamera does not start:

Code:

sudo /home/pi/camera.shexit 0
The camera.sh file is executable and it works with the command line or double-clicking on it.
I'm using bullseye OS.

What else can I try?

Thank you

Statistics: Posted by epikao2 — Thu Mar 07, 2024 2:22 pm



Viewing all articles
Browse latest Browse all 5151

Trending Articles