1

What comes after the second CHROMIUM_FLAGS= in gedit?

I did the wrong thing when trying to install pepper flash. i went by confusing instructions and now i want to just return this file to normal, i get an error in terminal when i edit it if i dont get it right. here's my file:

# Default settings for chromium-browser. This file is sourced by /bin/sh from 
# /usr/bin/chromium-browser 

# Options to pass to chromium-browser 
CHROMIUM_FLAGS="" 

# part for pepperflashplugin-nonfree : begin 

flashso="/usr/lib/pepperflashplugin-non... 

if [ -f $flashso ] 
then 
flashversion=`strings $flashso|grep ^LNX|sed -e "s/^LNX //"|sed -e "s/,/./g"` 
CHROMIUM_FLAGS=". /usr/lib/pepflashplugin-installer/pepfla... 
fi 

# part for pepperflashplugin-nonfree : end 
. /usr/lib/pepflashplugin-installer/pepfla... 

The file is called *default ( in /etc/chromium-browser) and the line after CHROMIUM_FLAGS= is where i messed up but i saved it without knowing, what goes after?

33
  • By default /etc/chromium-browser/default has only the line CHROMIUM_FLAGS="" . You have messed it up while editing it.
    – heemayl
    Apr 6, 2015 at 19:04
  • It had something there before, i erased it Apr 6, 2015 at 21:06
  • is there a way to reset the file? Apr 6, 2015 at 21:08
  • Yes, go to the /etc/chromium-browser directory, rename the current file as something else than default e.g. default.bak, then create a file named default having only the line CHROMIUM_FLAGS=""
    – heemayl
    Apr 6, 2015 at 21:18
  • I cant rename the file, i dont have permission to? Apr 6, 2015 at 21:50

1 Answer 1

2

You can go back to the default state by removing changes made to the file /etc/chromium-browser/default.

If you want to keep the current file /etc/chromium-browser/default, then rename the file as something else than default e.g. default.bak. Now create a file named default having nothing or only the line CHROMIUM_FLAGS="".

To summarize:

sudo mv /etc/chromium-browser/default /etc/chromium-browser/default.bak
echo 'CHROMIUM_FLAGS=""' | sudo tee -a /etc/chromium-browser/default
1
  • Elegant solution... Upvoted! ;-)
    – Fabby
    Apr 11, 2015 at 9:15

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .