我已经Nautilus
使用 root 权限打开并删除了一些项目。当我输入时Sudo nautilus
,特定的窗口打开了,但也出现了一些错误,如下所示:
meego@meego-Notebook-PC:~$ sudo nautilus
[sudo] password for meego:
Initializing nautilus-gdu extension
** (nautilus:5579): WARNING **: Failed to get the current CK session: GDBus.Error:org.freedesktop.ConsoleKit.Manager.GeneralError: Unable to lookup session information for process '5579'
(nautilus:5579): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed
Nautilus-Share-Message: Called "net usershare info" but it failed: 'net usershare' returned error 255: net usershare: cannot open usershare directory /var/lib/samba/usershares. Error No such file or directory
Please ask your system administrator to enable user sharing.
** (nautilus:5579): WARNING **: Could not inhibit power management: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Name "org.gnome.SessionManager" does not exist
** (nautilus:5579): WARNING **: Could not inhibit power management: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Name "org.gnome.SessionManager" does not exist
这些意味着什么?
答案1
您无需担心这些事情。这些不是错误,而是警告。可能是因为用户root
当前没有会话,并且您未以 身份登录root
。因此请忽略这些消息。
您可以删除此类消息(如果你想gksu nautilus
),在运行命令窗口中运行命令。按下alt+f2
将会弹出一个。
终端方式
您可以在终端中以 root 权限打开 nautilus,输入以下命令即可,不会出现错误消息
sudo -i nautilus &> /dev/null
。此处错误消息被重定向到另一个输出设备,该设备为空或无任何内容。请参阅这个答案更多