Last active
May 17, 2024 02:03
-
-
Save rmtsrc/2bd2b3343529878773e30eccb463ceb4 to your computer and use it in GitHub Desktop.
Auto start Raspberry Pi Chromium fullscreen from a list of bookmarks
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /home/pi/.config/lxsession/LXDE-pi/autostart | |
@bash /home/pi/chromium-monitoring.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# /home/pi/chromium-monitoring.sh | |
sed -i 's/"exited_cleanly":false/"exited_cleanly":true/' ~/.config/chromium/'Local State' | |
sed -i 's/"exited_cleanly":false/"exited_cleanly":true/; s/"exit_type":"[^"]\+"/"exit_type":"Normal"/' ~/.config/chromium/Default/Preferences | |
URLS=`jq --raw-output '.roots.bookmark_bar.children[] | select(.name == "Monitoring") | .children | map(.url) | join(" ")' /home/pi/.config/chromium/Default/Bookmarks` | |
chromium-browser --start-fullscreen --no-default-browser-check --no-first-run --disable-infobars --disable-session-crashed-bubble --disable-notifications --noerrdialogs $URLS |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment