New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Chromium Autostart / Kiosk Mode #3389
Comments
@kmplngj 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... ... #2938 (comment) So it needs to be: |
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 Thanks |
@kmplngj |
Using |
@kmplngj |
@kmplngj I'm also building one ^^ (and also run into this problem) 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
Or a hint like: "For Chromium options visit "/var/lib/dietpi/dietpi-software/installed/chromium-autostart.sh" |
@docgalaxyblock |
I'm still getting the update error dialog in Chromium with the parameters "chromium-browser --noerrdialogs --disable-translate --kiosk --incognito". :/ |
did you tried using |
I'm using this without any error dialogs: |
@docgalaxyblock @kmplngj |
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 I found |
I found that this is a bug in the Chromium version that is used by DietPi. I get this fixed with Best regards |
Great to have a solution for that. Probably 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 😉
|
I found that adding the following lines to # 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. |
Creating a bug report/issue
Required Information
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)
Additional Information (if applicable)
Steps to reproduce
Expected behaviour
Actual behaviour
Extra details
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"
The text was updated successfully, but these errors were encountered: