Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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?

share|improve this question

2 Answers 2

up vote 6 down vote accepted

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.

share|improve this answer
    
Strangely, this didn't work for me: when I copied chromium-browser.desktop to my desktop, it turned into a generic ".desktop" icon and wouldn't let me change it. Anyway, I managed to successfully achieve the correct icon by copying chromium-browser.svg to /usr/share/icons and ~/.icons. Thanks for the detailed answer though! (I probably just did something wrong I suppose) –  Magic Dec 4 '10 at 19:58
    
@Magic The Icon field of the .desktop file is still being changed even if it doesn't seem like it. But that is confusing, so see my updated answer. –  Alvin Row Dec 4 '10 at 20:43
    
Yes I think DoR's answer is a lot better than mine and usually there is more than One way to fry a fish when it comes to Ubuntu. One of the reasons I like it. And the more options you have the better when it comes to solving a problem. Plus I now know of 4 ways to change Icons in Ubuntu bonus! –  Allan Dec 4 '10 at 20:49
    
Ah there we go! Though by the way, I did get the following error when attempting to copy: $ cp ~/Desktop/chromium-browser.desktop ~/local/share/applications cp: cannot create regular file `/home/peter/local/share/applications': No such file or directory but manually copying worked! Thanks both of you! Edit Number 2: Unfortunately now there is a working launcher of Chromium, but it launches a separate Chromium icon (fuzzy)! Clearly this is an issue with Docky I suppose... –  Magic Dec 4 '10 at 22:17
    
@Magic My bad, there was a missing . in that command. When you manually copied the launcher, did you copy it to ~/.local/share...(with the .) or ~/local/share... (no .)? –  Alvin Row Dec 4 '10 at 22:29

I think this is possibly what you are looking for

HOWTO: Custom Icon Themes

I'm fairly sure that per user icons eg Icon's in your .icon folder super-seed the Icons that are provided elsewhere but I could be wrong. Its worth a shot.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.