以 root 身份使用 sudo nautilus 命令时出现以下错误。请提出解决方法

以 root 身份使用 sudo nautilus 命令时出现以下错误。请提出解决方法
root@catherine:/home/catherine/Downloads/cmake-3.8.0-rc2# sudo nautilus

(nautilus:639): 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

** (nautilus:639): CRITICAL **: Another desktop manager in use; desktop window won't be created
Nautilus-Share-Message: Called "net usershare info" but it failed: Failed to execute child process "net" (No such file or directory)

答案1

如果你想以 root 身份使用 nautilus,则应使用gksudo nautilus“gk”,因为“gk”为 sudo 提供了图形前端,这意味着它可用于安全地启动需要 GUI 的程序

相关内容