Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Open Firefox in fullscreen from command line

Tags:

firefox

I want to open a new firefox window through the command line, but only the fullscreen option doesn't work as it should.

my command:

/usr/bin/firefox -foreground -no-remote -new-window www.google.com

but firefox don't appear in fullscreen, so how can i get him to? (like click on F11)

like image 506
Lilly Avatar asked Oct 09 '14 10:10

Lilly


1 Answers

Mozilla plans to integrate kiosk mode functionality in version 71 of the Firefox web browser that users of the browser may launch from the command line.

Mozilla Firefox accepts the same parameter as Google Chrome to launch kiosk mode. Just load Firefox with --kiosk as a parameter to launch the browser in that mode. You may also append a site URL to the command, e.g. --kiosk https://www.stackoverflow.com, to have it loaded by the browser directly.

You can download the Firefox v71 here: https://www.mozilla.org/en-US/firefox/71.0beta/releasenotes/ (currently it is still in beta version)

More Firefox commands: https://developer.mozilla.org/en-US/docs/Mozilla/Command_Line_Options

This is my .bat script when the computer started:

start "" "C:\Program Files\Mozilla Firefox\firefox.exe" --kiosk --private-window https://www.stackoverflow.com

Note that in --kiosk mode, you cannot use window controls, Esc or F11 to exit kiosk mode. The only valid option at the time is to press Alt+F4 to close the entire window.

like image 142
Jee Mok Avatar answered Sep 28 '22 15:09

Jee Mok