自定义启动器未显示在“应用程序”中

自定义启动器未显示在“应用程序”中

我创建了一个桌面启动器,以 root 身份打开 Nautilus。

它没有出现在活动搜索中或所有应用程序

我怎样才能解决这个问题?

[Desktop Entry]
Name=Files (Admin)
Comment=Access and organize files as root
Exec=gksudo nautilus %U
Icon=system-file-manager
Terminal=false
Type=Application
StartupNotify=true
OnlyShowIn=GNOME;Unity;
Categories=GNOME;GTK;Utility;Core;
MimeType=inode/directory;application/x-gnome-saved-search;
Keywords=folder;manager;explore;disk;filesystem;root;admin;
X-GNOME-Bugzilla-Bugzilla=GNOME
X-GNOME-Bugzilla-Product=nautilus
X-GNOME-Bugzilla-Component=general
X-GNOME-Bugzilla-Version=3.2.1
X-Ubuntu-Gettext-Domain=nautilus

答案1

通常这是由于执行命令路径错误或缺失造成的...因此请仔细检查执行命令并最终将绝对路径设置为二进制文件。

答案2

这招很管用:-)

sudo cp ~/.local/share/applications/name.desktop /usr/share/applications/

答案3

我在用新下载的映像替换旧映像后遇到了这个问题。问题是我还没有将新映像标记为可执行文件。

chmod +x /path/to/new/appimage

在使新图像可执行后,我重新登录后它就被拾取了。

相关内容