Answers:
看起来Numix团队提供了一个名为的替代图标vscode.desktop
,以便对其进行修复,我们需要:
code.desktop
本地用户目录:cp /usr/share/applications/code.desktop ~/.local/share/applications/vscode.desktop
vscode.desktop
,并将所有Icon
属性从重命名Icon=code
为Icon=vscode
。结果应该是这样的:
[Desktop Entry]
Name=Visual Studio Code
Comment=Code Editing. Redefined.
GenericName=Text Editor
Exec=/usr/share/code/code --unity-launch %U
Icon=vscode
Type=Application
StartupNotify=true
StartupWMClass=Code
Categories=Utility;TextEditor;Development;IDE;
MimeType=text/plain;inode/directory;
Actions=new-window;
Keywords=vscode;
X-Desktop-File-Install-Version=0.22
[Desktop Action new-window]
Name=New Window
Name[de]=Neues Fenster
Name[es]=Nueva ventana
Name[fr]=Nouvelle fenêtre
Name[it]=Nuova finestra
Name[ja]=新規ウインドウ
Name[ko]=새 창
Name[ru]=Новое окно
Name[zh_CN]=新建窗口
Name[zh_TW]=開新視窗
Exec=/usr/share/code/code --new-window %U
Icon=vscode
sudo desktop-file-install vscode.desktop
无需登录即可更新图标,退了出去。