This is little tutorial how to add some unsupported, old or your own extension (add-on) to Google Chrome.
I was struggling with this for longer time and couldn't find suitable solution for my use case
when I want to be loaded without any cooperation with user and can kiosk can be restarted.
So maybe it will help to somebody else too.
1)
Prepare your own module that will contain unpacked Chrome extension.
Create directories "home", "guest" and "keyboard_extension" like this
Code: Select all
./home/guest/keyboard_extension
and put your unpacked extension there.
2)
Create file
Code: Select all
./home/guest/on_startup.sh
Code: Select all
#!/bin/sh
CHKEYFLAG="--load-extension=/home/guest/keyboard_extension/"
# add chrome startup flag
grep -q load-extension $chflags || echo $CHKEYFLAG >> $chflags
Give it exec rights
Code: Select all
chmod 755 on_startup.sh
Put following code somewhere online.
Code: Select all
// enable adding custom chrome extension
"ExtensionInstallBlacklist": [],
https://gitlab.com/tomas223/porteus-kio ... licies.txt
5)
Put following lines to your portreus config:
Code: Select all
browser_preferences=https://gitlab.com/tomas223/porteus-kiosk-config/raw/master/chrome-policies.txt
run_command=sh /home/guest/on_startup.sh
Now pack whole "home" directory with mksquash command. For how to check: https://porteus-kiosk.org/modules.html
And finally prepare kiosk ISO file. Check https://porteus-kiosk.org/kiosk-customization.html