In this case you will have to edit the file that handles the execution of the browser. This way you will be sure that the parameters you want will be included when called from everywhere.
This is what I mean:
- Move the original file to a different name
- With the old name of the original file, create a new script calling the original file with the needed parameters.
I will show an example of how to do this, using
You will have to be careful when executing the below commands, as super user privileges will be granted, thus you have full rights for your whole system, and, e.g. you can delete or alter everything
/usr/bin/chromium-browser is the executable of your browser and
~/Documents/backup/ is an example backup location. In order to find the location of the executable called each time your browser is launched, you can find it from its desktop file, usually in
This will copy /usr/bin/chromium-browser to ~/Documents/backup/
This will rename the executable from chromium-browser to chromium-original
- Replace the old file's name with a file that passes the parameters you want to the original executable.
For example, in this occasion, create anywhere a file called chromium-browser with the contents:
/usr/bin/chromium-original --param1 --param2 --param3 "$@"
Where --param1 --param2 --param3 are the parameters you want to be executed each time.
The "$@" means "all the parameters passed to this file", which in this case it is usually a URL.
- Make the file executable and move it to the old file's location
After you save the above file, make it executable. Two ways of doing it, either right click->Properties->Permissions->Allow executing file as program or via terminal:
chmod +ax chromium-browser
Finally, move it to the old location of the original executable:
mv ~/chromium-browser /usr/bin/
~/chromium-browser the location of the script that you created.
Please note that you do not need to do all these if you want to replace one command of the terminal with the same but with other arguments. You can do this into
~/.bash_aliases using an alias. See How to create a permanent "alias"? for more information.