G_DIETPI_VERSION_CORE=6
G_DIETPI_VERSION_SUB=28
G_DIETPI_VERSION_RC=0
G_GITBRANCH='master'
G_GITOWNER='MichaIng'
buster
Linux magicmirrordisplay 4.19.93+ #1290 Fri Jan 10 16:34:37 GMT 2020 armv6l GNU/Linux
RPi Zero W (armv6l)
There are some points that could be done when my search results are correct. But this did not worked for me.
I changed /var/lib/dietpi/dietpi-software/installed/chromium-autostart.sh
# - Add URL for first run:
URL=$(grep -m1 '^[[:blank:]]*SOFTWARE_CHROMIUM_AUTOSTART_URL=' /DietPi/dietpi.txt | sed 's/^[^=]*=//$
CHROMIUM_OPTS+=" --homepage $URL"
# - Add URL for first run:
URL=$(grep -m1 '^[[:blank:]]*SOFTWARE_CHROMIUM_AUTOSTART_URL=' /DietPi/dietpi.txt | sed 's/^[^=]*=//$
CHROMIUM_OPTS+=" --app $URL"
@kmplngj
Many thanks for your report.
Jep that is a known limitation with the kiosk mode, which is not 100% non-interactive. The app mode is indeed the solution but one needs to take care to not mix up the xinit arguments with Chromium arguments and take care the syntax. Let me see where we discussed/tested this...
... https://github.com/MichaIng/DietPi/issues/2938#issuecomment-506393195
So it needs to be: --app=$URL
Hi,
I'm not 100% sure if this really helped or the fact that I made the preferences readonly.
I have another thing. The Browser always displays the failed update messages. To disable this --disable-component-update should be added to the command line. Perhaps you want to fix this.
Thanks
Jan
@kmplngj
Thanks for reporting. Using --app=$URL instead of --kiosk does not hide this?
However instead of hiding it, it would be better to check why the update fails. If you made parts of it readonly, it is of course expected and in case of a browser probably not the best idea do block updates. If Chromium is run as unprivileged user, then it hopefully does not even attempt to update itself.
Using --app=$URL does not hide the update notice. It seems even --disable-component-update does not do it. 馃槥
@kmplngj
Okay that is bad, then we need to go through the available options again: https://peter.sh/experiments/chromium-command-line-switches/
@kmplngj I'm also building one ^^ (and also run into this problem)
@MichaIng I found a solution at this guide http://werner.rothschopf.net/201501_raspberry_kioskmode.htm
He uses this tags:
chromium-browser --noerrdialogs --disable-translate --kiosk --incognito
and it works fine
I suggest to implement a list were you can check different tags and a "custom tags" selection (were you can put in the tags that yourself need from your last link) when at the dietpi-autostart chromium entry
Greetings from Germany ^^
So maybe a menu entry like this
_____________________________________________________________________________
-------------------------Chromium options selection-----------------------------
Reference: https://peter.sh/experiments/chromium-command-line-switches/
DEFAULT_CHROMIUM_OPTS="--kiosk --noerrdialogs --test-type --window-size=$RES_X,$RES_Y --start-fullscreen --start-maximized --window-position=0,0"
_____________________________________________________________________________
Cancle Ok
Or a hint like: "For Chromium options visit "/var/lib/dietpi/dietpi-software/installed/chromium-autostart.sh"
@docgalaxyblock
Makes sense, there are quite many options available for different use cases. I'll see if I find some time for v6.30 to implement such, meanwhile anyone is welcome do work on this of course 馃槈.
I'm still getting the update error dialog in Chromium with the parameters "chromium-browser --noerrdialogs --disable-translate --kiosk --incognito". :/
did you tried using --app instead of --kiosk?
I'm using this without any error dialogs:
CHROMIUM_OPTS="--kiosk --incognito --noerrdialogs --test-type --window-size=$RES_X,$RES_Y --start-fullscreen --start-maximized --window-position=0,0"
@docgalaxyblock @kmplngj
Many thanks for your info guys. As of my testing here sadly the --kiosk --noerrdialogs does not make it 100% non-interactive, as there are other prompts possible that are no errors. I guess --app --noerrdialogs would then be the way to go it one has no mouse attached.
Any news on this?
I tried a DietPi fresh install. Does not work. I tried changing to -app --noerrdialogs. Also no luck. Chrome is showing the failed update message.
Okay so --kiosk --noerrdialogs as you tested before does not work, --app --noerrdialogs does not, I'm out of ideas how get it silenced. Also seems like each Chromium behaves a bid different...
I found --disable-component-update to probably disable the update attempt? It is not about Chromium itself I guess since those APT-packaged builds have internal updater disabled in favour of APT-based updates?
I found that this is a bug in the Chromium version that is used by DietPi. --noerrdialogs and --disable-component-update are buggy.
I get this _fixed_ with --check-for-update-interval=31536000
Best regards
Jan
--check-for-update-interval=31536000
Great to have a solution for that. Probably --check-for-update-interval=0 might work as well to disable update checks?
There is not really a Chromium version that DietPi uses, there is chromium-browser provided by the RPi repository that we pull on RPi and there is chromium from the Debian repository for all other cases and of course the version depends on the underlying Raspbian/Debian version as well.
The problem is, from what I found in general with Chromium, is that there is this huge number of command line options, that is nowhere really officially documented and changes from version to version and seems to be different between builds and platforms. So I would call that more an issue in the way how the Chromium project in general handles those command options 馃槃. Sometimes more is less in combination with a clear documentation that can be relied on and change logs which contain early information when an option has been deprecated, when it will be removed and about the replacement in case 馃槑.
Hi,
Maybe you like to have to our forum https://dietpi.com/phpbb/viewtopic.php?p=27145#p27145
There I have spend some time to find a way 馃槈
sudo touch /etc/chromium-browser/customizations/01-disable-update-check;echo CHROMIUM_FLAGS=\"\$\{CHROMIUM_FLAGS\} --check-for-update-interval=31536000\" | sudo tee /etc/chromium-browser/customizations/01-disable-update-check
I found that adding the following lines to /var/lib/dietpi/dietpi-autostart/chromium-autostart.sh helped. Taken from the dietpi forum: https://dietpi.com/phpbb/viewtopic.php?p=23969#p23969
# Reset chromium state before xinit start.
sed -i 's/"exited_cleanly":false/"exited_cleanly":true/' ~/.config/chromium/Default/Preferences
sed -i 's/"exit_type":"Crashed"/"exit_type":"Normal"/' ~/.config/chromium/Default/Preferences
xinit $FP_CHROMIUM $CHROMIUM_OPTS
For those who want to automate the following fix in for example an install script:
sed -i 's/xinit $FP_CHROMIUM $CHROMIUM_OPTS//' /var/lib/dietpi/dietpi-autostart/chromium-autostart.sh
cat << EOF >> /var/lib/dietpi/dietpi-autostart/chromium-autostart.sh
# Fix to disable chromium "Restore Bubble" popup
sed -i 's/"exited_cleanly":false/"exited_cleanly":true/' ~/.config/chromium/Default/Preferences
sed -i 's/"exit_type":"Crashed"/"exit_type":"Normal"/' ~/.config/chromium/Default/Preferences
xinit \$FP_CHROMIUM \$CHROMIUM_OPTS
EOF
A nice workaround as well, many thanks for sharing.