如何更改konsole打开URL的默认浏览器?

Modified on: Mon, 18 Jun 2018 10:54:53 +0800

我已将google-chrome设置为Ubuntu和gnome应用程序中的默认Web浏览器。但是,使用konsole时,所有链接都以konqueror打开,而不是google-chrome!

我尝试使用以下设置默认浏览器:sudo update-alternatives --config 'x-www-browser'

这适用于在gnome-terminal和其他gnome程序中打开链接......但不是像konsole那样的kde。此外,似乎没有用于访问kde设置的kcontrol程序。

有人知道在使用gnome时为此设置kde设置的方法吗?

编辑:据我所知,我已经配置了所有可以想到的相关设置......

grep 'chrome' ~/.local/share/applications/mimeapps.list

x-scheme-handler/http=google-chrome.desktop;firefox.desktop;
x-scheme-handler/https=google-chrome.desktop;firefox.desktop;
x-scheme-handler/http=google-chrome.desktop
x-scheme-handler/https=google-chrome.desktop
x-scheme-handler/chrome=firefox.desktop
text/html=google-chrome.desktop
application/x-extension-htm=google-chrome.desktop;firefox.desktop;
application/x-extension-html=google-chrome.desktop;firefox.desktop;
application/x-extension-shtml=google-chrome.desktop;firefox.desktop;
application/xhtml+xml=google-chrome.desktop;firefox.desktop;
application/x-extension-xhtml=google-chrome.desktop;firefox.desktop;
application/x-extension-xht=google-chrome.desktop;firefox.desktop;
x-scheme-handler/about=google-chrome.desktop
x-scheme-handler/unknown=google-chrome.desktop

grep 'chrome' /usr/share/applications/defaults.list

text/html=firefox.desktop;google-chrome.desktop
text/xml=firefox.desktop;google-chrome.desktop
application/xhtml_xml=google-chrome.desktop
x-scheme-handler/http=firefox.desktop;google-chrome.desktop
x-scheme-handler/https=firefox.desktop;google-chrome.desktop
x-scheme-handler/ftp=google-chrome.desktop

并没有提到konqueror:

grep -i 'konqueror' /usr/share/applications/defaults.list
grep -i 'konqueror' ~/.local/share/applications/mimeapps.list
grep -i 'kon' /usr/share/applications/defaults.list
grep -i 'kon' ~/.local/share/applications/mimeapps.list
作者:,TrinitronX

最佳答案

我遇到了在Ubuntu / Unity中运行konsole的问题。当其他一切都失败了,我编辑了~/.kde/share/config/kdeglobals

[General] BrowserApplication[$e]=!google-chrome

退出,登录 - 宾果!

作者:vadim

相关问答

添加新评论