我在 Ubuntu 版本 20.04.2 LTS 上下载了 sublime text build 4107,运行时它没有显示原始徽标,而是显示通用徽标
我搜索了答案,我唯一得到的是检查Icon=
里面的图标路径sublime_text.desktop
,我尝试放置绝对路径和相对路径但没有任何效果,
[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=new-window;new-file;
[Desktop Action new-window]
Name=New Window
Exec=/opt/sublime_text/sublime_text --launch-or-new-window
OnlyShowIn=Unity;
[Desktop Action new-file]
Name=New File
Exec=/opt/sublime_text/sublime_text --command new_file
OnlyShowIn=Unity;
一些我不知道是否相关的信息,我必须创建一个符号链接才能~$ subl
工作
~/usr/local/bin$ ls -la
lrwxrwxrwx 1 root root 46 May 27 10:07 subl -> /home/name_123/Downloads/sublime_text/sublime_text