Saturday, May 4, 2024
 Popular · Latest · Hot · Upcoming
5
rated 0 times [  5] [ 0]  / answers: 1 / hits: 8891  / 3 Years ago, fri, august 13, 2021, 9:45:07

In my Ubuntu Google Chrome browser, often showing a disturbing toolbar, i am running it in command line kiosk mode.



How can i via command line mention never to show such toolbars? (after pressing X it disappear but again when page refresh it shows up, how can i disable those toolbars completely via command line launch?)



enter image description here


More From » 12.04

 Answers
4

Yes, there is a --disable-translate switch that can be passed from the command line.


google-chrome --kiosk www.france.fr


enter image description here


google-chrome --disable-translate --kiosk www.france.fr


enter image description here



Note: some extra information I found is that if there's already another instance of Chrome running, running it from the command-line will show Created new window in existing browser session, which has proved to ignore the switches passed in the command, so you won't be able to pass the --disable-translate switch, so you'll need to close all instances first. However, if you want to run a new instance from the command line alongside the existing instance, you can do google-chrome --user-data-dir=$(mktemp -d) --kiosk --disable-translate (or another directory). This involves the creation of a new user data directory.


Source: the answers here and here.



There are lots of other switches available in Chrome/Chromium that can be used. You can find them listed here and here.


[#30659] Saturday, August 14, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
tubequ

Total Points: 11
Total Questions: 113
Total Answers: 115

Location: Equatorial Guinea
Member since Thu, Oct 7, 2021
3 Years ago
;