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