guysoft / FullPageOS

A raspberrypi distro to display a full page browser on boot
GNU General Public License v3.0
3.89k stars 241 forks source link

Possible to use Firefox instead of Chrome #340

Open giddel opened 4 years ago

giddel commented 4 years ago

I've websites which cannot be viewed with the delivered Chromium browser due oauth reasons. But a manually installed Firefox ESR can display this sites properly. Unfortunately it lacks the kiosk mode in the delivered version 68. But since Firefox v71 there is a kiosk mode available too. So my question: would it be possible to deliver FullpageOS with an optional current Firefox browser?

guysoft commented 4 years ago

You can make FullPageOS use Firefox but you will need to figure out how to put it in kiosk mode of fullscreen. It says here: "If you were on Linux, it'd be super easy"

firefox -url <urlhere> & xdotool search --sync --onlyvisible --class "Firefox" windowactivate key F11

You are welcome to test and update the wiki with your findings.

You can change the command that starts at boot at /home/pi/scripts/start_chromium_browser You will need to install Firefox too. I am not sure if you want to build a custom image or edit an existing one.

test2a commented 3 years ago

hey. i found out firefox --kiosk --private-window -url github.com

works on my linux machine so i suppose we can use this as well

https://www.askvg.com/tip-how-to-use-secret-kiosk-mode-in-mozilla-firefox-web-browser/

would it be possible to have a firefox flavour for people who want to use that instead of chromium?

guysoft commented 3 years ago

Could be done with https://github.com/OctoPrint/CustoPiZer or CustomPiOS, but I won't maintain it. You could write a CustoPiZer version that would run on GitHub actions.

For reference take a look at: https://github.com/guysoft/OctoPi-Klipper/