加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Linux > 正文

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

发布时间:2020-12-13 16:57:02 所属栏目:Linux 来源:网络整理
导读:我以前处理过很多奇怪的MonoDevelop,但是这个真的开始让我烦恼.我正在使用x86-64 Arch Linux并安装了最新的所有软件包(包括MonoDevelop).当我去运行ASP.Net项目时,我明白了 Error launching web browser GLib.GException: There was an error launching the
我以前处理过很多奇怪的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起)

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读