-
Notifications
You must be signed in to change notification settings - Fork 9
Autostart
The autostart is defined in /etc/xdg/lxsession/LXDE-pi/autostart
Once opened you see:
@lxpanel --profile LXDE-pi
@pcmanfm --desktop --profile LXDE-pi
@xscreensaver -no-splash
@lxterminal -e /usr/local/bin/StartCam.sh
The last line starts the StartCam.sh script. You may remove this line.
Do not alter the others because the RPi desktop needs them to start properly.
StartCam.sh
#!/bin/sh
sleep 10
/usr/local/bin/YoloCamRpi
The simple script waits for 10 seconds to give the RPi time to establish the internet and mail connection.
After this time, it starts YoloCamRpi, also located in /usr/local/bin
.
Before you can use StartCam.sh make it executable with
sudo chmod 755 /usr/local/bin/StartCam.sh
The desktop icon is defined in ~/Desktop/Camera.desktop
[Desktop Entry]
Version=1.1
Type=Application
Encoding=UTF-8
Name=YoloCam
Comment=Yolo camera
Icon=/home/pi/software/YoloRpiCam/YoloCamIcon.png
Exec=lxterminal -e /usr/local/bin/YoloCamRpi
Name[en_GB]=YoloCam
Before you can start the application by clicking the icon, you need to allow action in the File Manager.
Go to menu option Edit->Preferences
, here check Don't ask options on launch executable file
The menu entry is defined in /usr/share/applications/motion-cam.desktop
[Desktop Entry]
Name=YoloCam
GenericName=Yolo Camera
Comment=Yolo camera Rpi
Exec=lxterminal -e /usr/local/bin/YoloCamRpi
Icon=/home/pi/software/YoloRpiCam/YoloCamIcon.png
Categories=AudioVideo;
Terminal=false
Type=Application