numix-core icon indicating copy to clipboard operation
numix-core copied to clipboard

Mint Software Manager "crippled icons"

Open zummuz opened this issue 10 years ago • 39 comments

Hi. For some reason there are only colored circles (means that icons were applied, but without images?) in Software Manager. Icons for these categories are also placed in kickoff and they work fine.

screenshot from 2015-12-27 20 19 38

The same behavior: screenshot from 2015-12-27 21 25 12

Is that a known issue? Linux Mint 17.3 cinnamon

zummuz avatar Dec 27 '15 18:12 zummuz

Never seen this anywhere else than the GitHub preview, no idea what's happening there. Is this a new issue or is it just now you started using Numix Circle?

Is the Mint Software Manager GTK, Qt or something else?

My uninformed guess is that those might be the icons which still have that unused clipping in their code.

palob avatar Dec 27 '15 20:12 palob

@palob

or is it just now you started using Numix Circle?

Yes, just started now.

Is the Mint Software Manager GTK, Qt or something else?

Cinnamon is a desktop environment that is based on the GTK+ 3 toolkit. So, I have installed libgtk-2.0-0 (2.24.23-0ubuntu1.3) and libgtk-3-0 (3.10.8~8+qiana)

zummuz avatar Dec 28 '15 07:12 zummuz

But are you sure the Software Manager (not a Cinnamin app) is GTK and uses librsvg for SVG rendering?

palob avatar Dec 28 '15 09:12 palob

Could you try whether sudo gtk-update-icon-cache -f /usr/share/icons/hicolor, sudo gtk-update-icon-cache -f /usr/share/icons/Numix are of any help?

Maybe removing the icon thumbnail cache does something rm -R ~/.cache/thumbnails/* rm ~/.thumbnails/*

palob avatar Dec 28 '15 10:12 palob

Could you try whether sudo gtk-update-icon-cache -f /usr/share/icons/hicolor, sudo gtk-update-icon-cache -f /usr/share/icons/Numix are of any help?

No, nothing has changed.

Maybe removing the icon thumbnail cache does something rm -R ~/.cache/thumbnails/* rm ~/.thumbnails/*

No, all the same.

zummuz avatar Dec 28 '15 10:12 zummuz

Mintinstall is a gtk application, you can check their source code in Github. But i've never seen that before, we had a lot of issues with MintInstall :(

Le 28 déc. 2015 à 11:51, zummuz [email protected] a écrit :

Could you try whether sudo gtk-update-icon-cache -f /usr/share/icons/hicolor, sudo gtk-update-icon-cache -f /usr/share/icons/Numix are of any help?

No, nothing has changed.

Maybe removing the icon thumbnail cache does something rm -R ~/.cache/thumbnails/* rm ~/.thumbnails/*

No, all the same.

— Reply to this email directly or view it on GitHub.

bilelmoussaoui avatar Dec 28 '15 10:12 bilelmoussaoui

Is there any obvious difference between applications-graphics and e.g. applications-games?

andia89 avatar Dec 28 '15 11:12 andia89

@wa4557 -rw-r--r-- 1 root root 9496 Dec 27 18:33 48x48/apps/applications-games.svg (works) -rw-r--r-- 1 root root 4363 Dec 27 18:33 48x48/apps/applications-internet.svg (works) lrwxrwxrwx 1 root root 24 Dec 27 18:33 48x48/apps/applications-graphics.svg -> accessories-painting.svg (doesn't work) lrwxrwxrwx 1 root root 10 Dec 27 18:33 48x48/apps/applications-office.svg -> docear.svg (works)

zummuz avatar Dec 28 '15 11:12 zummuz

@zummuz: Could you try soemthing like inkscape --vacuum-defs /path/to/accessories-paintings.svg. Then do everything @palob suggested above again; change the icon theme to some other theme and back to Numix and see if something changed for application-graphics?

andia89 avatar Dec 28 '15 11:12 andia89

Checked octave.svg and unetbootin.svg. Both contain clipPath objects.

@wa4557 All icons in question already have been treated with --vacuum-defs so it doesn't seem to be capable of removing the clipPath cruft. So if the clipPath stuff proves to be the root of evil we might have to put up a custom script (and maybe it it to this one.

@zummuz Here is the source code of unetbootin.svg.

Could you please open the icon in a text editor and delete lines 7 through 16 (as highlighted in the link above) and check if unetbootin looks fine then?

palob avatar Dec 28 '15 11:12 palob

@palob The difference I see in these icons, is that the icons which work are "inkscape" svgs whereas the icons which don't have been treated with the svgcleaner-script. So a inkscape --vacuum-defs changes the icon back to a inkscape svg

andia89 avatar Dec 28 '15 12:12 andia89

But there are working ones which have been treated with svgcleaner. As far as I can see it's really just the clipPath stuff.

palob avatar Dec 28 '15 12:12 palob

@wa4557

@zummuz: Could you try soemthing like inkscape --vacuum-defs /path/to/accessories-paintings.svg. Then do everything @palob suggested above again; change the icon theme to some other theme and back to Numix and see if something changed for application-graphics?

It hasn't helped

@palob

Could you please open the icon in a text editor and delete lines 7 through 16 (as highlighted in the link above) and check if unetbootin looks fine then?

Looks fine: screenshot from 2015-12-28 15 48 12

zummuz avatar Dec 28 '15 12:12 zummuz

@zummuz Cool, I guess @palob is right then

@palob Are there any icons that still need the clipPath stuff? Otherwise we should add an option to the svgcleaner script that removes those parts...

andia89 avatar Dec 28 '15 12:12 andia89

Also some icons haven't been applied (firefox, for instance, applied only on installation page). And those which have been applied, after installation become empty with check mark (like unetbootin on the screenshot below) screenshot from 2015-12-28 16 09 13 Though that's not significant.

zummuz avatar Dec 28 '15 13:12 zummuz

I guess it's an issue with MintInstall..

Le 28 déc. 2015 à 14:21, zummuz [email protected] a écrit :

Also some icons haven't been applied (firefox, for instance, applied only on installation page). And those which have been applied, after installation become empty with check mark (like unetbootin on the screenshot below)

Though that's not significant.

— Reply to this email directly or view it on GitHub.

bilelmoussaoui avatar Dec 28 '15 13:12 bilelmoussaoui

@wa4557 I don't think there is any icon which needs that. If any icon needed this it would show up broken in Qt DEs / image viewers.

palob avatar Dec 28 '15 14:12 palob

@bil-elmoussaoui Yeah, don't know where those non-Numix icons come from. The Firefox icon is an outdated upstream icon revision, the VLC icon isn't the upstream icon either.

palob avatar Dec 28 '15 15:12 palob

In addition to clipPath stuff it looks like some icons have unused text objects in their code which inkscape --vacuum-defs and svgcleaner-cli aren't capable of removing.

palob avatar Dec 28 '15 22:12 palob

scour also does not remove them. We could manually remove them using sed or sth similar but not sure if this breaks something...

andia89 avatar Dec 30 '15 15:12 andia89