From the code it is clear that connecting to Q.bo with VNC should display a Chrome in kiosk mode with the configuration page of the local Q.bo webserver.
This doesn't work since one tries to setup the file /home/pi/.config/lxsession/LXDE-pi/autostart while the directories /home/pi/.config/lxsession/LXDE-pi/ does not exist on a brandnew Raspian image!
This can be solved by creating first the directory...
So in /opt/qbo/scripts/QBO_Installer.sh change the following...
# Add Chrome to startup
if [ -f /home/pi/.config/lxsession/LXDE-pi/autostart ]
then
if [ -z `cat /home/pi/.config/lxsession/LXDE-pi/autostart | grep chromium`]
then
echo "@/usr/bin/chromium-browser --kiosk --noerrordialogs --incognito --disable-infobars --disable-session-crashed-bubble http://localhost:800 0" >> /home/pi/.config/lxsession/LXDE-pi/autostart
else
printf "Already configured chromium at startup.\n"
fi
else
echo "@lxpanel --profile LXDE-pi" > /home/pi/.config/lxsession/LXDE-pi/autostart
echo "@pcmanfm --desktop --profile LXDE-pi" >> /home/pi/.config/lxsession/LXDE-pi/autostart
echo "@xscreensaver -no-splash" >> /home/pi/.config/lxsession/LXDE-pi/autostart
echo "@point-rpi" >> /home/pi/.config/lxsession/LXDE-pi/autostart
echo "@/usr/bin/chromium-browser --kiosk --noerrordialogs --incognito --disable-infobars --disable-session-crashed-bubble http://localhost:800 0" >> /home/pi/.config/lxsession/LXDE-pi/autostart
fi
to the same with ' mkdir -p' ...
# Add Chrome to startup
if [ -f /home/pi/.config/lxsession/LXDE-pi/autostart ]
then
if [ -z `cat /home/pi/.config/lxsession/LXDE-pi/autostart | grep chromium`]
then
echo "@/usr/bin/chromium-browser --kiosk --noerrordialogs --incognito --disable-infobars --disable-session-crashed-bubble http://localhost:800 0" >> /home/pi/.config/lxsession/LXDE-pi/autostart
else
printf "Already configured chromium at startup.\n"
fi
else
mkdir -p /home/pi/.config/lxsession/LXDE-pi/
echo "@lxpanel --profile LXDE-pi" > /home/pi/.config/lxsession/LXDE-pi/autostart
echo "@pcmanfm --desktop --profile LXDE-pi" >> /home/pi/.config/lxsession/LXDE-pi/autostart
echo "@xscreensaver -no-splash" >> /home/pi/.config/lxsession/LXDE-pi/autostart
echo "@point-rpi" >> /home/pi/.config/lxsession/LXDE-pi/autostart
echo "@/usr/bin/chromium-browser --kiosk --noerrordialogs --incognito --disable-infobars --disable-session-crashed-bubble http://localhost:800 0" >> /home/pi/.config/lxsession/LXDE-pi/autostart
fi
--
Christian Buysschaert
Leuven - Belgium
Email christian.buysschaert@gmail.com
It is also advised to put the above code to add chrome to startup in a seperate function to use both in INSTALL and UPDATE! In attachment a version where this has been done.
--
Christian Buysschaert
Leuven - Belgium
Email christian.buysschaert@gmail.com