It looks like VLC isn't starting because it requires a display session. Try these:
Use lxterminal or xinit – Ensure VLC runs in the correct display environment.
Add export DISPLAY=:0 at the start of your script.
Use @reboot (sleep 30 && your_command) & in crontab to ensure GUI is ready.
Check permissions – Make sure the script has execute rights (chmod +x script.sh).
Try ~/.config/autostart – Create a .desktop file for VLC instead of a script.
Since it works manually, it’s likely a display/session issue. Give these a shot!
Use lxterminal or xinit – Ensure VLC runs in the correct display environment.
Add export DISPLAY=:0 at the start of your script.
Use @reboot (sleep 30 && your_command) & in crontab to ensure GUI is ready.
Check permissions – Make sure the script has execute rights (chmod +x script.sh).
Try ~/.config/autostart – Create a .desktop file for VLC instead of a script.
Since it works manually, it’s likely a display/session issue. Give these a shot!
Statistics: Posted by ismailahmed — Tue Mar 25, 2025 11:21 am