我最近使用 Nautilus(/usr/share/applications
双击“文件”)为桌面图标“创建链接”。一旦我将权限更改为可执行,它就可以正常工作。但是,当我为 iPhone 的 rythmbox 安装同步内容时,我在终端窗口中注意到 Nautilus 的引用闪过。不确定这是否相关,但桌面图标不再是文件柜,并且在执行时它失去了作为 su 的功能。此外,当从终端运行时,它正常运行,但会出现以下消息。请原谅我,我只是个新手:
simon@Arthur:~$ sudo nautilus
[sudo] password for simon:
(nautilus:4921): 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
wrestool: /vmlinuz: file contains no resources
(nautilus:4921): Gtk-CRITICAL **: gtk_widget_show: assertion 'GTK_IS_WIDGET (widget)' failed
(nautilus:4921): Gtk-CRITICAL **: gtk_spinner_start: assertion 'GTK_IS_SPINNER (spinner)' failed
(nautilus:4921): Gtk-CRITICAL **: gtk_widget_show: assertion 'GTK_IS_WIDGET (widget)' failed
(nautilus:4921): Gtk-CRITICAL **: gtk_spinner_start: assertion 'GTK_IS_SPINNER (spinner)' failed
(nautilus:4921): GLib-CRITICAL **: Source ID 120 was not found when attempting to remove it
(nautilus:4921): GLib-CRITICAL **: Source ID 121 was not found when attempting to remove it
(nautilus:4921): GLib-CRITICAL **: Source ID 122 was not found when attempting to remove it
答案1
OP 在评论中回答:
我想现在我已经明白了。我想要做的是从我的主目录之外的应用程序(例如 nautilus)创建一个可用的桌面图标。我想我已经通过
sudo nautilus
在终端中使用命令并从创建到我的桌面的链接来实现这一点/usr/share/applications/Files
。然后将属性中的命令更改为sudo nautilus --new-window %U
。