MonoDevelop产生"错误启动Web浏览器" - 如何解决这个问题?

Ear*_*rlz 7 linux mono monodevelop

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

启动Web浏览器时出错

GLib.GException:启动与此位置关联的默认操作命令时出错.在Gnome.Url.Show(System.String URL)[0x00000]中:0在MonoDevelop.Platform.GnomePlatform.ShowUrl(System.String URL)[0x00000]在/build/src/monodevelop-2.8.5/src/addins /GnomePlatform/GnomePlatform.cs:134在MonoDevelop.Ide.DesktopService.ShowUrl(System.String URL)[0x00000]在/build/src/monodevelop-2.8.5/src/core/MonoDevelop.Ide/MonoDevelop.Ide/DesktopService的.cs:84 MonoDevelop.AspNet.Gui.BrowserLauncher.LaunchDefaultBrowser(System.String URL)[0x00000]在/build/src/monodevelop-2.8.5/src/addins/AspNet/MonoDevelop.AspNet/MonoDevelop.AspNet.Gui /BrowserLauncher.cs:42

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

hiq*_*han 15

适合我的解决方案是在终端中键入以下命令:

gconftool-2 --set --type=string /desktop/gnome/url-handlers/http/command '/usr/bin/firefox %s'
Run Code Online (Sandbox Code Playgroud)

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


Ear*_*rlz 0

我见过为此列出了许多修复程序。我尝试了其中的一些(gconf 等)...但对我来说没有任何作用。可能是因为我使用 Fluxbox 作为窗口管理器而不是 Gnome。

解决此问题的最简单方法是设置 BROWSER 环境变量。export BROWSER=firefox为我修好了