Q.bo doesn't go in ...
 
Notifications
Clear all

Q.bo doesn't go in Chrome kiosk mode after update

2 Posts
1 Users
3 Reactions
1,305 Views
chrisbuy
(@chrisbuy)
Member
Joined: 6 years ago
Posts: 71
Topic starter  

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

This topic was modified 6 years ago by chrisbuy

--
Christian Buysschaert
Leuven - Belgium
Email christian.buysschaert@gmail.com


   
Quote
chrisbuy
(@chrisbuy)
Member
Joined: 6 years ago
Posts: 71
Topic starter  

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.

This post was modified 6 years ago 4 times by chrisbuy

--
Christian Buysschaert
Leuven - Belgium
Email christian.buysschaert@gmail.com


   
ReplyQuote
Share: