Ubuntu – How does one change the chromium icon automatically after updating

chromiumicons

I use the daily ppa build of Chromium. The daily build uses a PNG I believe instead of an SVG, so it looks rather horrid on my dock.

Blurry Chromium Icon

And zoomed in:

alt text

(Not too sure why the icon is getting clipped in this screenshot, I did a select area method which perhaps has made it funky. Anyway, you get the idea!)

So after every update, I have to manually go into /usr/share/applications and manually select an SVG Chromium icon for the Chromium launcher to use. Since Chromium uses the daily build, this is rather tedious to do following every update.

Is there a means / scripting method that can be put into place that will automatically change Chromium's icon following an update of Chromium?

Best Answer

Allan's answer should work, but here is another way:

  1. Copy /usr/share/applications/chromium-browser.desktop to your Desktop:

    cp /usr/share/applications/chromium-browser.desktop ~/Desktop

  2. Select a custom icon.

    Right click -> Properties -> Permissions -> Check Allow executing file as program.
    Now go back to the Basic tab and click on the icon in the upper left to select a new icon.

  3. Move this launcher to ~/.local/share/applications/:

    cp ~/Desktop/chromium-browser.desktop ~/.local/share/applications

  4. You should now see this launcher with the icon you selected in the Application menu, so add it to your Dock.

  5. That's it! This launcher won't be overwritten every time you upgrade Chromium. You may need to restart your dock for it to notice.

Related Question