-
Notifications
You must be signed in to change notification settings - Fork 4
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/YoloIPcam
The simple script waits for 10 seconds to give the RPi time to establish the internet and mail connection.
After this time, it starts YoloIPcam, 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=YoloIPcam
Comment=Yolo IP camera
Icon=/home/pi/software/YoloIPcam/YoloIPCamIcon.png
Exec=lxterminal -e /usr/local/bin/YoloIPcam
Name[en_GB]=YoloIPcam
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/YoloIPcam.desktop
[Desktop Entry]
Name=Yolo IP camera
GenericName=Yolo IP camera
Comment=Yolo IP camera
Exec=lxterminal -e /usr/local/bin/YoloIPcam
Icon=/home/pi/software/YoloIPCam/YoloIPCamIcon.png
Categories=AudioVideo;
Terminal=false
Type=Application