sudo
当我使用,gksudo
或Alt+运行 Nautilus 时F2,收到以下错误消息:
Initializing nautilus-gdu extension
** (nautilus:2352): WARNING **: Failed to get the current CK session: GDBus.Error:org.freedesktop.ConsoleKit.Manager.GeneralError: Unable to lookup session information for process '2352'
(nautilus:2352): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed
** (nautilus:2352): CRITICAL **: nautilus_directory_file_monitor_add: assertion `NAUTILUS_IS_DIRECTORY (directory)' failed
(nautilus:2352): GLib-GObject-WARNING **: invalid (NULL) pointer instance
(nautilus:2352): GLib-GObject-CRITICAL **: g_signal_connect_object: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed
(nautilus:2352): GLib-GObject-WARNING **: invalid (NULL) pointer instance
(nautilus:2352): GLib-GObject-CRITICAL **: g_signal_connect_object: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed
** (nautilus:2352): CRITICAL **: nautilus_directory_get_uri: assertion `NAUTILUS_IS_DIRECTORY (directory)' failed
知道为什么吗?
答案1
尝试安装gnome-用户共享看看是否有帮助。
如果 Nautilus 仍无法启动,请尝试此解决方案:
答案2
即使你解决了这个问题,在使用管理员权限通过 sudo/gksudo/Open 调用 nautilus 时仍然存在问题:
即使您关闭根窗口,Nautilus 仍会保留在内存中,无论它获得什么命令行选项,从此就缺少 --no-daemon 或 --no-fork 选项。
我建议对根任务使用不同的文件管理器,例如 xfce 的 thunar。