-
Notifications
You must be signed in to change notification settings - Fork 148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invalid GTK Icon Cache [$15] #915
Comments
Hi, The cause of the issue is the existence of white space (blank) chars in several icons names. When this is fixed the cache is regenerated properly. |
@crazybyte Cool, and this won't break the Icon Linkage? |
Anyone planning to fix this issue please?! |
We can't apply the fix @crazybyte suggested because it means the six icons with spaces in their names won't work properly. From what I can tell, this is an issue with the program that generates the icon caches not correctly escaping spaces :/ |
@Foggalong Are you suggesting that it's impossible to rename those files so that they don't have spaces in their names? Maybe to some name with hyphens/dashes or underscores in them? I am not familiar with icon nomenclature, so please forgive me at this point - maybe that naming convention is a rule in gnome-icon-cache, but if this was the case, then other icon packs would have the same problem as well, am I wrong? |
The problem is that the original icon names we were given don't have hyphens, dashes, or underscores in them - it was just a space. This means that the program using this icon will be looking in icon packs for the name with with spaces, not any other character. Whether or not it's possible to somehow escape the space (something like %20 in URLs perhaps) I don't know, but I've not found anything yet that suggests we can. Other icon themes will in theory have this problem too, but because most are much smaller than Numix in size they're less likely to run into the problem. The only other theme I'm aware of that's ran into this is Moka, and it was dealt with there by just ignoring that the icons with spaces existed. |
There's now a $5 bounty placed on this issue. If you're developing a fix, remember: the fix must be applied in such a way that apps which uses spaces in their icon names can still be themed. |
Just remove the icons. They're no longer used. |
Also, the cache can be generated upon installation (using packaging), it needn't be included in a theme. |
The names I can find are
which program was it that used to use them? |
Unity webapps? |
I'm guessing it's some DEs webapp system, but as far as I know Unity has always used |
Just for the record, these are the icons which currently generate the issue
Because I do not use those applications, I simply replaced the spaces with underscores in their file names and the GTK Icon Cache built without problems.
Granted, this only shows the issue and leaves it unsolved, but other users might want to identify such icons and rename (or delete) them to generate a valid icon cache. |
From GTK documentation:
It seems that there is no direct solution to this, unless code is changed upstream or the icons are removed. Maybe a workaround can be done in the packaging changing names before gtk-update-icon-theme is executed and restoring them after that, at least in AUR can be done. |
Correct. It can't be fixed. (Regardless of the bounty placed on it.) |
@Foggalong maybe you could use this bounty on other issues as Calligra one. |
@ChuckDaniels87 good thinking, I'll do that :) Thanks for your input on this @snwh it's much appreciated. |
Wrote a bit in the wiki to cover it. Just have to work it into the main readme now and delete the relevant icons :) |
Nice 👍 |
We believe this is triggered in the same way than in this bug:
snwh/moka-icon-theme#94
Uncertain if we will approach the same solution.
Did you help close this issue? Go claim the $15 bounty on Bountysource.
The text was updated successfully, but these errors were encountered: