安装 Sublime Text 3 .deb 文件后,包描述说的是“这将在终端上运行”。所以我对自己说,“Sublime 没问题,我会为你创建一个 .desktop 文件......嗯?”
看起来,Sublime Text 已经有一个 .desktop 文件,/usr/share/applications但我不明白为什么 Dash 在搜索时看不到它?
[Desktop Entry]
Version=1.0
Type=Application
Name=Sublime Text
GenericName=Text Editor
Comment=Sophisticated text editor for code, markup and prose
Exec=/opt/sublime_text/sublime_text %F
Terminal=false
MimeType=text/plain;
Icon=sublime-text
Categories=TextEditor;Development;
StartupNotify=true
Actions=Window;Document;
[Desktop Action Window]
Name=New Window
Exec=/opt/sublime_text/sublime_text -n
OnlyShowIn=Unity;
[Desktop Action Document]
Name=New File
Exec=/opt/sublime_text/sublime_text --command new_file
OnlyShowIn=Unity;
Run Code Online (Sandbox Code Playgroud)
我有没有提到我是 Linux 菜鸟?