Icon for Visual Studio Code is wrong. It uses the icon from the text editor
Things I have tried so far:
I tried setting the Icon with
/usr/share/code/resources/app/resources/linux/code.png which exists and is the correct icon. The icon within the menu vanishes, the launcher icon when running is still the text editor icon.
I also completely removed the package and then reinstalled Visual Studio Code with no success
How can I assign the correct icon?
Installation: downloaded deb package and installed it using dpkg --install
Contents of desktop file:
[Desktop Entry] Name=Visual Studio Code Comment=Code Editing. Redefined. GenericName=Text Editor Exec=/usr/bin/code %U Icon=/usr/share/code/resources/app/resources/linux/code Type=Application StartupNotify=true StartupWMClass=/usr/share/code/resources/app/resources/linux/code.png Categories=Utility;TextEditor;Development;IDE; MimeType=text/plain; Actions=new-window; X-Desktop-File-Install-Version=0.22 Terminal=false [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/bin/code --new-window %U Icon=/usr/share/code/resources/app/resources/linux/code.png
WM_CLASS(STRING) = "code", "Code"
PS: I searched this site and have found a lot of similar questions along with answers, but the answers have not helped
PPS: Created a new user as a test, his icon is correct