linux - MonoDevelop 产生 "Error launching web browser"——如何解决这个问题?

标签 linux mono monodevelop

我之前处理过很多 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)

关于linux - MonoDevelop 产生 "Error launching web browser"——如何解决这个问题?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8914597/

相关文章:

linux:提交给 sge 的作业卡在 'dt' 状态

c# - Xamarin Studio 4.1.0.45在Mac OS X 10.6.8上启动时崩溃

c# - C# 中的 wget/curl

c# - 将 C# mono 用于 android 或 java?

xamarin.ios - 使用 MonoDevelop 为 XCode 4 手动迁移 MonoTouch 项目

xamarin.ios - 如何将库添加到Xamarin引用列表

linux - 系统挂起可能与 "clocksource tsc unstable"相关?

linux - 为什么 kmalloc() 比 vmalloc() 更高效?

linux - 为什么在 Linux 上的 SendEmail 中句首的句号会被忽略

.net - Mono 中的代码契约