歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> Gentoo Chrome浏覽器在Linux root 權限下啟動發生 user-data-dir修正

Gentoo Chrome浏覽器在Linux root 權限下啟動發生 user-data-dir修正

日期:2017/2/28 15:29:04   编辑:Linux教程

Chrome默認不能以root身份運行 Google Chrome 浏覽器,請以普通用戶身份啟動“Google Chrome 浏覽器“,要以根用戶身份運行,您必須為個人資料信息的存儲指定其他的“--user-data-dir”。

解決方案一:

找到google-chrome 的快捷方式 右擊查看屬性 找到命令 即得到google-chrome 的地址。

如:/usr/bin/google-chrome

打開終端. 輸入命令:/usr/bin/google-chrome %U -user-data-dir

OK 即可以搞定..

解決方案二:

編輯 /usr/share/applications/google-chrome.desktop 文件,找到 Exec 一行,將其值改為 /opt/google/chrome/google-chrome –user-data-dir=”/root/.config/google-chrome” 也應該是可以的。

Copyright © Linux教程網 All Rights Reserved