Fix #14 missing icon in GNOME 3.32#15
Fix #14 missing icon in GNOME 3.32#15crazygolem wants to merge 1 commit intosimonthechipmunk:masterfrom crazygolem:patch-1
Conversation
Admittedly should be "Quickfixes #14"...
|
Hi, I tried looking at the documentation but it doesn't make sense (I wasn't expecting anything else from the gnome dev hub to be honest): We are now de-serializing a textual representation of a gicon instance that has never been serialized in the first place and therefore shouldn't exist? Sorry, I honestly don't get this. I can't even tell whether this will break compatibility with older Gnome Shell versions or not. That's not your fault. It seems the gnome desktop is becoming worse with every release. So many dumb decisions lately and I'm really losing my patience. |
|
I tried a few times getting into gnome extensions development, but so far my efforts were mostly fruitless. With this preamble in mind: don't worry, it doesn't make much more sense to me =) I think I got this solution mostly by chance, trying out a few things based on outdated code I found around; an implementation of From system.js: That method you use simply creates an Frankly, I have no clue what a "gicon" is, so I cannot explain why a method named "from_string" takes a path as argument and produces an image. I suspected that the "string" in "from string" meant "path as a string", but the documentation you pointed to, mentioning "serialization" and stuffs is making me doubt that interpretation now. Technically, an image file is a "serialization of the image object on disk", but if that's the explanation then the guy who wrote the doc did it to win a bet :/ However I've looked around a bit more and seen that other well-known extensions do it in a similar way (so can it even be wrong? (yes it can, nobody can know with gnome-shell)), e.g. Activities Configurator: So why did the previous behavior change? I have no idea and don't even know where I would start looking. Why did it even work before? I mean the |
|
You could try to augment the search path like we do (https://github.com/maweki/twitchlive-extension/blob/master/extension.js#L364) but we also load our icons using the gicon from_string (https://github.com/maweki/twitchlive-extension/blob/master/extension.js#L364) |
|
Thanks for the hint @maweki, but actually turnoffdisplay already augments the search path in its own |
|
Now that you ask: I don't know either. An angel PR by @oae did that. I think we had it before like you do. Maybe search path for icons no longer works in 3.32. gnome-shell documentation is abysmal. |
Admittedly should be "Quickfixes #14"...