操作系统:Ubuntu 18.04(最小安装选项):
我使用
其中,当我在启动器上右键单击它们的图标时,dolphin、gwenview和kate没有显示“添加到收藏夹”选项。但是featherpad和qterminal有“添加到收藏夹”选项。为什么会这样呢?
(即使重新启动后,情况仍然存在。)
它们的.desktop文件没有提供任何线索。
• Dolphin
• FeatherPad
• Gwenview
• QTerminal
海豚(如下所示),gwenview和kate没有显示“添加到收藏夹”的选项。
dkb@dkb-ubu1804:~$ cat /etc/X11/default-display-manager
/usr/sbin/gdm3
dkb@dkb-ubu1804:~$ echo $XDG_SESSION_TYPE
x11
dkb@dkb-ubu1804:~$
我使用
apt install
安装了以下基于Qt的应用程序:dolphin、featherpad、gwenview、kate和qterminal。其中,当我在启动器上右键单击它们的图标时,dolphin、gwenview和kate没有显示“添加到收藏夹”选项。但是featherpad和qterminal有“添加到收藏夹”选项。为什么会这样呢?
(即使重新启动后,情况仍然存在。)
它们的.desktop文件没有提供任何线索。
• Dolphin
[Desktop Entry]
Name=Dolphin
Exec=dolphin %u
Icon=system-file-manager
Type=Application
X-DocPath=dolphin/index.html
Categories=Qt;KDE;System;FileTools;FileManager;
GenericName=File Manager
Terminal=false
MimeType=inode/directory;
InitialPreference=10
X-DBUS-ServiceName=org.kde.dolphin
• FeatherPad
[Desktop Entry]
Name=FeatherPad
GenericName=Text Editor
Comment=Lightweight Qt5 text editor
Exec=featherpad %F
Icon=featherpad
Terminal=false
Type=Application
MimeType=text/plain;
Categories=Qt;Utility;TextEditor;
X-KDE-StartupNotify=false
• Gwenview
[Desktop Entry]
Name=Gwenview
GenericName=KDE Image Viewer
Comment=A simple image viewer
Exec=gwenview %U
Terminal=false
Icon=gwenview
Type=Application
Categories=Qt;KDE;Graphics;Viewer;Photography;
MimeType=inode/directory;image/gif;image/jpeg;image/png;image/bmp;image/x-eps;image/x-icns;image/x-ico;image/x-portable-bitmap;image/x-portable-graymap;image/x-portable-pixmap;image/x-xbitmap;image/x-xpixmap;image/tiff;image/x-psd;image/x-webp;image/webp;image/x-tga;
X-DocPath=gwenview/index.html
# InitialPreference should be greater than Okular so that Gwenview is the
# primary application associated with images, but less than Konqueror or Dolphin
# so that Gwenview is not the primary applications for folders.
InitialPreference=8
X-DBUS-ServiceName=org.kde.gwenview
• 凯特
[Desktop Entry]
GenericName=Advanced Text Editor
Name=Kate
Comment=KDE Advanced Text Editor
MimeType=text/plain;
Exec=kate -b %U
StartupNotify=true
X-KDE-HasTempFileOption=true
Icon=kate
X-DocPath=kate/index.html
Type=Application
Terminal=false
InitialPreference=9
X-DBUS-StartupType=Multi
X-DBUS-ServiceName=org.kde.kate
Categories=Qt;KDE;Utility;TextEditor;
• QTerminal
[Desktop Entry]
Name=QTerminal
Type=Application
GenericName=Terminal emulator
Comment=Terminal emulator
Icon=utilities-terminal
Exec=qterminal
Terminal=false
Categories=Qt;System;TerminalEmulator;
Actions=Dropdown;
[Desktop Action Dropdown]
Name=Drop-down terminal
Exec=qterminal --drop
Icon=utilities-terminal
Name[en_GB]=Drop-down Terminal
海豚(如下所示),gwenview和kate没有显示“添加到收藏夹”的选项。
Featherpad(如下所示)和qterminal都有预期的“添加到收藏夹”选项。
gnome-shell 3.36.1-5ubuntu1 amd64
和Ubuntu 20的情况下添加Kate。也许可以通过创建一个.desktop
文件并将其放在某个位置来实现替代方法吗? - sancho.s ReinstateMonicaCellio/var/lib/snapd/desktop/applications/kate_org.kde.kate.desktop
。 - DK Boseapt-get
从.deb
安装的。 请注意,我成功将其添加到了收藏夹中(我现在不记得当时使用了什么方法),但是当我启动它时,在 Dash 中出现了两个图标。这是一个进步,但还不是想要的结果。 - sancho.s ReinstateMonicaCellio