VS Code ON ubuntu 16.04 not showing the right launcher icon after installation
Based on VS Code developers on github we can solve this by changing the path to the right icon like so:
sudo nano /usr/share/applications/code.desktop
And change the Icon link to :
Icon=/usr/share/pixmaps/code.png
It should Look like so:
[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
Related videos on Youtube
lotfio
Experienced Software Engineer adept in all stages of advanced web development. Knowledgeable in user interface, testing, and debugging processes. Bringing forth expertise in design, installation, testing and maintenance of web systems. Equipped with a solid background in computer science, data structures and algorithms. Proficient in an assortment of technologies, including PHP, JAVASCRIPT, C++, PYTHON, MYSQL, and LINUX. Able to effectively self-manage during independent projects, as well as collaborate in a team setting.
Updated on September 18, 2022Comments
-
lotfio over 1 year
After installing VS Code i'm getting a default icon not that one that comes with vs code
How can i get it look like these ?
-
lotfio over 6 yearsHi there the problem is not because of the installation i followed vs code installation guide besides i have seen some people reporting the same problem on github but now i solved it :) thanks for feedback
-
chazecka over 6 yearsYou're welcome bro, glad to hear you've fixed what was broken :) Many ppl tend to install packages wrong way, so I started simply. Plus, I had no problem with icons installing it this way, so my answer was based on my experience.
-
Alkarin over 6 years
Icon=code
was how mine was set by default. Changed it to the path you specified and it worked. Thanks! -
Marecky about 5 yearsI have installed VS Code via Snap on Ubuntu Budgie 18.04 and I have this code.png graphic file missing. Where I could download the original?
-
AlainD over 4 years@Marecky: I had the same problem, but you should find a copy in
/usr/share/code/resources/app/resources/linux
. Open Terminal, navigate to that folder and try this command:sudo cp code.png /usr/share/pixmaps/code.png
.