前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >nautilus出现一闪而过现象

nautilus出现一闪而过现象

作者头像
Gxjun
发布2018-03-27 11:51:11
1.4K0
发布2018-03-27 11:51:11
举报
文章被收录于专栏:ml

linux相关问题:

  1.这几天在使用乌班图时,出现文件夹打开一闪而过现象,于是我试着使用命令行来启动:   

代码语言:javascript
复制
sudo nautilus

  出现下面这一堆错误(error_info):

代码语言:javascript
复制
(nautilus:5942): Gtk-WARNING **: Failed to register client: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files
sys:1: PyGIWarning: Nautilus was imported without specifying a version first. Use gi.require_version('Nautilus', '3.0') before import to ensure that the right version gets loaded.

(nautilus:5942): Gtk-WARNING **: Theme parsing error: <broken file>:1:0: Failed to import: 位于 “/org/gnome/libgd/tagged-entry/default.css”的资源不存在

** (nautilus:5942): CRITICAL **: nautilus_menu_provider_get_file_items: assertion 'NAUTILUS_IS_MENU_PROVIDER (provider)' failed

** (nautilus:5942): CRITICAL **: nautilus_menu_provider_get_background_items: assertion 'NAUTILUS_IS_MENU_PROVIDER (provider)' failed

** (nautilus:5942): CRITICAL **: nautilus_menu_provider_get_file_items: assertion 'NAUTILUS_IS_MENU_PROVIDER (provider)' failed

** (nautilus:5942): CRITICAL **: nautilus_menu_provider_get_background_items: assertion 'NAUTILUS_IS_MENU_PROVIDER (provider)' failed

** (nautilus:5942): CRITICAL **: nautilus_menu_provider_get_file_items: assertion 'NAUTILUS_IS_MENU_PROVIDER (provider)' failed

** (nautilus:5942): CRITICAL **: nautilus_menu_provider_get_background_items: assertion 'NAUTILUS_IS_MENU_PROVIDER (provider)' failed

** (nautilus:5942): CRITICAL **: nautilus_menu_provider_get_file_items: assertion 'NAUTILUS_IS_MENU_PROVIDER (provider)' failed

** (nautilus:5942): CRITICAL **: nautilus_menu_provider_get_background_items: assertion 'NAUTILUS_IS_MENU_PROVIDER (provider)' failed

** (nautilus:5942): CRITICAL **: nautilus_menu_provider_get_file_items: assertion 'NAUTILUS_IS_MENU_PROVIDER (provider)' failed

** (nautilus:5942): CRITICAL **: nautilus_menu_provider_get_background_items: assertion 'NAUTILUS_IS_MENU_PROVIDER (provider)' failed
Nautilus-Share-Message: Called "net usershare info" but it failed: 执行子进程“net”失败(没有那个文件或目录)

** (nautilus:5942): CRITICAL **: nautilus_menu_provider_get_file_items: assertion 'NAUTILUS_IS_MENU_PROVIDER (provider)' failed

** (nautilus:5942): CRITICAL **: nautilus_menu_provider_get_background_items: assertion 'NAUTILUS_IS_MENU_PROVIDER (provider)' failed

** (nautilus:5942): CRITICAL **: nautilus_menu_provider_get_file_items: assertion 'NAUTILUS_IS_MENU_PROVIDER (provider)' failed

** (nautilus:5942): CRITICAL **: nautilus_menu_provider_get_background_items: assertion 'NAUTILUS_IS_MENU_PROVIDER (provider)' failed

** (nautilus:5942): CRITICAL **: nautilus_menu_provider_get_file_items: assertion 'NAUTILUS_IS_MENU_PROVIDER (provider)' failed

** (nautilus:5942): CRITICAL **: nautilus_menu_provider_get_background_items: assertion 'NAUTILUS_IS_MENU_PROVIDER (provider)' failed

** (nautilus:5942): CRITICAL **: nautilus_menu_provider_get_file_items: assertion 'NAUTILUS_IS_MENU_PROVIDER (provider)' failed

** (nautilus:5942): CRITICAL **: nautilus_menu_provider_get_background_items: assertion 'NAUTILUS_IS_MENU_PROVIDER (provider)' failed
**
ERROR:nautilus-canvas-container.c:6032:finish_adding_new_icons: assertion failed: (!container->details->auto_layout)

解决方法:

代码语言:javascript
复制
gksudo nautilus

  使用这种命令打开nautilus,正常启动了文件夹,然后使用上面命令也可以开启文件夹了,在桌面也可以点开文件夹了,唉,莫名其妙的就解决了~

补充: 

     上面这种使用了root的nautilus,只能治标不治本,治本的路子使用这个:

代码语言:javascript
复制
 sudo rm -rf ~/.config/nautilus $

 参考资料:

https://ubuntuforums.org/showthread.php?t=2324256

https://bugs.launchpad.net/ubuntu/+source/nautilus/+bug/1622880

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2017-08-28 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档