1. Open google-chrome located in /usr/bin with 'gedit', 'kate' or your favorite text editor.
Code:
gedit /usr/bin google-chrome
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.
---------------------------------------------------------------------------------------------
老外不建议使用root根用户来使用浏览器,我想是出于安全的考虑吧。不过自己的计算机,鼓捣鼓捣玩玩应该没问题。如果是服务器之类的,还是安全第一。
转载于:https://blog.51cto.com/xuezhifeng/1070621