微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

linux – MonoDevelop产生“启动Web浏览器时出错” – 如何解决这个问题?

我以前处理过很多奇怪的MonoDevelop,但是这个真的开始让我烦恼.我正在使用x86-64 Arch Linux并安装了最新的所有软件包(包括MonoDevelop).当我去运行ASP.Net项目时,我明白了

Error launching web browser

GLib.GException: There was an error launching the default action
command associated with this location. at Gnome.Url.Show
(System.String url) [0x00000] in :0 at
MonoDevelop.Platform.Gnomeplatform.showUrl (System.String url)
[0x00000] in
/build/src/monodevelop-2.8.5/src/addins/GnomePlatform/GnomePlatform.cs:134
at MonoDevelop.Ide.DesktopService.ShowUrl (System.String url)
[0x00000] in
/build/src/monodevelop-2.8.5/src/core/MonoDevelop.Ide/MonoDevelop.Ide/DesktopService.cs:84
at MonoDevelop.AspNet.Gui.browserLauncher.launchdefaultbrowser
(System.String url) [0x00000] in
/build/src/monodevelop-2.8.5/src/addins/AspNet/MonoDevelop.AspNet/MonoDevelop.AspNet.Gui/browserLauncher.cs:42

我该如何解决?我已经读过没有使用Gnome这是一个问题.我从来没有使用过Gnome而且这个曾经一次工作(大约一年前就破了)

解决方法

适合我的解决方案是在终端中键入以下命令:
gconftool-2 --set --type=string /desktop/gnome/url-handlers/http/command '/usr/bin/firefox %s'

(自http://blog.wolfman.com/articles/2006/8/27/getting-f-spot-to-upload-to-flickr-on-kubuntu起)

原文地址:https://www.jb51.cc/linux/394667.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐