You are not logged in.

#1 2014-12-25 08:20:55

Roken
Member
From: South Wales, UK
Registered: 2012-01-16
Posts: 1,372

Where does it get the icon from

OK, after my (and many other's) reported problems with huge icons, and having narrowed the problem down to svg icons, I've set about converting the very few icons still in svg format to png for my prefered theme. My methodology is to find the .desktop file. see which file is used for the icon and convert it using imagemagick. However, a couple of icons (avahi zeroconf browser, xsane and the wine folder being examples) don't have icons in either /usr/share/pixmaps or the theme folder. I can find the name, but using locate to find teh path can throw up a dozen hits. So where does the icon get picked up from by default if it's not in pixmaps or the theme folder?


Ryzen 5900X 12 core/24 thread - RTX 3090 FE 24 Gb, Asus B550-F Gaming MB, 128Gb Corsair DDR4, Fractal Design Define 7 XL, 5 HD (2 NvME PCI, 4SSD) + 1 x optical.
Linux user #545703

/ is the root of all problems.

Offline

#2 2014-12-25 18:11:20

Radioactiveman
Member
From: Germany
Registered: 2010-05-13
Posts: 389

Re: Where does it get the icon from

I would rather try to solve the actual problem instead of using a workaround.

Maybe this patch for GTK3 helps.
Otherwise try to modify your index.theme file.

Offline

#3 2014-12-25 18:35:33

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,543
Website

Re: Where does it get the icon from

And which icon(s) are you talking about?  If they are the icons specified in the desktop file, the path will be provided.  Otherwise, application icons need not be separate files - they can be contained in the binary executable.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#4 2014-12-26 08:19:49

Roken
Member
From: South Wales, UK
Registered: 2012-01-16
Posts: 1,372

Re: Where does it get the icon from

@ Radioactiveman.

I was unaware of that patch, though the size of 16x16 is hardcoded. I could amend and patch for my own use, but I'd rather have a gtk I can customise on the fly. The problem with icon sizes is well documented recently.

@Trilby

The .desktop files contain the name of the image to use as the icon, but not the full path (nor the file extension), which was what prompted my question - what would the default path be where there's nothing in pixmaps?


Ryzen 5900X 12 core/24 thread - RTX 3090 FE 24 Gb, Asus B550-F Gaming MB, 128Gb Corsair DDR4, Fractal Design Define 7 XL, 5 HD (2 NvME PCI, 4SSD) + 1 x optical.
Linux user #545703

/ is the root of all problems.

Offline

#5 2014-12-26 11:00:18

ooo
Member
Registered: 2013-04-10
Posts: 1,638

Re: Where does it get the icon from

they could be inherited from other icon theme.

check your icon theme's index.theme file, if it has something like

Inherits=gnome,hicolor

it would get the icons that are missing from your icon theme from gnome icon theme.

Offline

Board footer

Powered by FluxBB