You are not logged in.

#1 2013-11-13 14:01:13

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

[solved] Using a custom icon for a particular application

Hello there,

I am using the faenza-icon-theme 1.3.1-2. I would like to use a custom icon for some applications such as GIMP. It confuses me that for example GIMP has the same icon as mtPaint.

The GIMP icon provided by faenza is located in:

/usr/share/icons/Faenza/apps/<size>/gimp.{png,svg}

I wanted to set a custom icon by placing it into:

~/.local/share/icons/hicolor/scalable/apps/gimp.svg 

However, my custom icon is ignored and the faenza icon is continued to be used in the task bar, context menus or the application menu.

How can I set a custom icon? Do I have to replace the icon directly in /usr/share/icons/Faenza/apps/<size>/gimp.{png,svg}?

This would, however, mean that with every update of Faenza my custom icon gets overwritten.

Last edited by orschiro (2014-01-15 09:17:34)

Offline

#2 2013-11-13 15:09:22

nbvcxz
Member
From: Poland
Registered: 2007-12-29
Posts: 202

Re: [solved] Using a custom icon for a particular application

Icon theme is icon theme. Probably you can't mix it this way. But I think the solution is to create a brand new (your theme) with your custom icons and in index.theme which includes line:

Inherits=Faenza

After that remember gtk-update-icon-cache -f -t (in the dir where is index.theme of your new iconset)
As effect - your icons should be taken primary and any that are not in your iconset will be taken from Faenza.

Last edited by nbvcxz (2013-11-13 15:11:51)


Lenovo G50 | LXQT-git | compton | conky

Offline

#3 2013-11-13 17:25:55

bohoomil
Member
Registered: 2010-09-04
Posts: 2,376
Website

Re: [solved] Using a custom icon for a particular application

You need a custom gimp.desktop file to do it. That's how I do it:

1. Copy the original gimp.desktop from  /usr/share/applications to $HOME/.local/share/applications.
2. Rename your custom icon to gimp2.svg (or whatever you like) and drop it in $HOME/.local/share/pixmaps (or globally: /usr/share/pixmaps).
3. Edit your custom $HOME/.local/share/applications/gimp.desktop and change the the name of the 'Icon=gimp' entry so that it reflects the one you are going to use. Do not append any suffix (*.svg, *.png) to the name of the icon!


:: Registered Linux User No. 223384

:: github
:: infinality-bundle+fonts: good looking fonts made easy

Offline

#4 2013-11-14 07:28:18

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

Re: [solved] Using a custom icon for a particular application

@bohoomil

Thanks for your suggestion. I like this approach. However, it does not work completely. What I created:

~ $ cat ~/.local/share/applications/gimp.desktop | grep gimp2
Icon=gimp2

~ $ l ~/.local/share/pixmaps/gimp2.svg 
-rw-r--r-- 1 orschiro users 21852 2012-07-14 04:11:33.000000000 +0200 /home/orschiro/.local/share/pixmaps/gimp2.svg

But the icon does not appear:

http://i.imgur.com/JgGuOkQ.png

Offline

#5 2013-11-14 16:35:46

bohoomil
Member
Registered: 2010-09-04
Posts: 2,376
Website

Re: [solved] Using a custom icon for a particular application

Run 'gtk-update-icon-cache' first and see if this helps. If for some reason 'pixmaps' directory does not seem to be working as expected, try moving the icon to the proper 'apps' subdir of your icon theme and re-run 'gtk-update-icon-cache'. I guess it should do the job.


:: Registered Linux User No. 223384

:: github
:: infinality-bundle+fonts: good looking fonts made easy

Offline

Board footer

Powered by FluxBB