Yan*_*off 80 google-chrome 15.10
自 Ubuntu 15.10 升级以来,google-chrome-stable 不断询问是否应将其设置为默认浏览器,即使它已经是。我试图重新安装它,但这没有帮助。有任何想法吗?
Yan*_*off 54
有关工作修复,请参阅此答案的结尾。
初始答案 2015 年 10 月 28 日(过时的修复)
为避免被问及是否要使用 Chrome 作为默认浏览器,请使用以下解决方法(在此处提出并在Yurii Kolesnykov的此问题的评论部分中提出建议):
~/.config/google-chrome/Default/Preferences
使用文本编辑器打开文件。
找到线
"check_default_browser": true,
Run Code Online (Sandbox Code Playgroud)
并将其替换为
"check_default_browser": false,
Run Code Online (Sandbox Code Playgroud)
就我而言,该文件 > 200k 个字符,因此 gedit 崩溃了几次。如果您的情况相同,您可能希望使用基于终端的编辑器,如 vi。
请注意,这是一种解决方法,问题本身必须由 Chrome 开发人员解决。
2015 年 11 月 24 日更新
正如Danilo Piazzalunga提到的,该错误已确认。正如NicDumZ建议的那样,请点击
引起注意。谢谢!
2016 年 2 月 20 日更新
正如Ron Thompson和3vi1在评论部分首先报道的那样;并最终由我自己确认(使用 Ubuntu 15.10),在重新安装 google-chrome 后,此解决方法似乎不再适用,至少不适用于所有人。使用此解决方法的每个人都应尽量避免重新安装 chrome。
我再次鼓励您说您受到启动板上的错误的影响(目前有 302 人)。
2016 年 4 月 5 日更新(工作修复!)
已经在启动板上提出了一个修复程序,它显然为几个人完成了这项工作:
要应用此修复程序,请将文件中的第 198 行更改/usr/bin/xdg-settings
为
command="`grep -E "^Exec(\[[^]=]*])?=" "$file" | cut -d= -f 2- | sed -e 's/ .*$//'`"
Run Code Online (Sandbox Code Playgroud)
到
command="`grep -E "^Exec(\[[^]=]*])?=" "$file" | cut -d= -f 2- | sed -e 's/ .*$//' | head -n 1`"
Run Code Online (Sandbox Code Playgroud)
2016 年 7 月 25 日更新(工作修复!)
(K)Ubuntu 16.04 的建议修复更新:
要应用此修复程序,请将文件中的第 #177 行和 #202 行更改/usr/bin/xdg-settings
为
command="`grep -E "^Exec(\[[^]=]*])?=" "$file" | cut -d= -f 2- | first_word"
Run Code Online (Sandbox Code Playgroud)
到
command="`grep -E "^Exec(\[[^]=]*])?=" "$file" | cut -d= -f 2- | first_word | head -n 1`"
Run Code Online (Sandbox Code Playgroud)
然后转到 Google Chrome 设置并将 Chrome 设置为默认浏览器。
2017 年 6 月 1 日更新
截至今天,该错误已被关闭并标记为“修复已发布”。引用用户Olivier Tilloy (osomon):
如果我正确阅读了报告,则问题已在 xenial 中的 xdg-utils 中得到解决。Wily 已经停产将近一年了,所以我正在关闭这个 bug。
no longer affects: chromium-browser no longer affects: google-chrome-beta (Ubuntu) no longer affects: google-chrome (Ubuntu) Changed in chromium-browser (Ubuntu): assignee: Chad Miller (cmiller) ? nobody status: In Progress ? Invalid Changed in xdg-utils (Ubuntu): assignee: Chad Miller (cmiller) ? nobody status: Confirmed ? Fix Released
归档时间: |
|
查看次数: |
34954 次 |
最近记录: |