Howto run google-chrome as root

Just want to add a permanent solution to the problem:

1. Open google-chrome located in /usr/bin with 'gedit', 'kate' or your favorite text editor.

Code:
gedit /usr/bin chromium-browser

2. Add "--user-data-dir" (without the quotes) at the very end of the file. Mine looks like this:


exec -a "$0" "$HERE/chrome" "$@" --user-data-dir

3. Save, close and voilà, you're done. Enjoy your favorite browser.

原文地址:https://www.cnblogs.com/fuleying/p/5253503.html