When I search for sublime in the "search your computer" box, it shows the icon like this:
Now when I open the application, the previous sublime text icon is shown as in image here:
How do I replace the old icon with the new one?
UnInstall it
sudo apt-get remove sublime-text && sudo apt-get autoremove
And install it back
sudo add-apt-repository ppa:webupd8team/sublime-text-3
sudo apt-get update
sudo apt-get install sublime-text-installer
will fix this.
~/.local/share/applications
for duplicate.desktop
files. If you installed it globally, you don't need any in~/.local/share/applications
, unless you deliberately made modifications. Local .dektop files overrule global ones, they will not update if you update the application, hence the obsolete icon.