如何将 gVim 放入我的 gnome-shell 收藏夹?

use*_*814 5 gnome gvim 12.04

我将 Ubuntu 12.04 与 gnome-shell 一起使用,并且我希望在收藏夹栏中使用 gVim。

我怎么能把它放在那里?我在应用程序下找不到它,但它已安装。

Ale*_* L. 6

创建一个名为的文件~/.local/share/applications/gvim.desktop并将以下内容复制到其中:

[Desktop Entry]
Name=gvim
GenericName=Text Editor
Comment=Edit text files
Keywords=Plaintext;Write;
Exec=gvim %U
Terminal=false
Type=Application
MimeType=text/plain;
Icon=gvim
Categories=Utility;TextEditor;
Run Code Online (Sandbox Code Playgroud)

它现在应该在应用程序列表中,您可以像任何其他应用程序一样将它添加到收藏夹栏中。

  • 是的,我不得不终止会话(它有效)。请注意,图标图像在我的 Ubuntu 12.04 上不起作用。经过一番搜索,我找到了一个解决方案:`Icon=/usr/share/app-install/icons/vim.png`。现在我也有图标了:) (2认同)