基于github上的VS Code开发人员,我们可以通过将路径更改为正确的图标来解决这个问题,如下所示:
sudo nano /usr/share/applications/code.desktop
Run Code Online (Sandbox Code Playgroud)
并将图标链接更改为:
Icon=/usr/share/pixmaps/code.png
Run Code Online (Sandbox Code Playgroud)
它应该看起来像这样:
[Desktop Entry]
Name=Visual Studio Code
Comment=Code Editing. Redefined.
GenericName=Text Editor
Exec=/usr/share/code/code --unity-launch %U
Icon=/usr/share/pixmaps/code.png
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
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
5289 次 |
| 最近记录: |