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

前端之家收集整理的这篇文章主要介绍了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.f2er.com/linux/394667.html

猜你在找的Linux相关文章