For some reason on Ubuntu 16.04 Unity Desktop the pyrogenesis executable from SVN directory binaries/system/pyrogenesis leads to unknown executable icon in taskbar. Having googled little about SDL_SetWindowIcon usage under unity ubuntu but didn't find a proper solution.
I also check resizing the taskbar from settings but didn't help changing to the correct icon to binaries/data/mods/public/art/textures/icons/window.png.
In terminal it also doesn't give the warning from the code LOGWARNING("Window icon not found.").
So it may need some fix in the correct usage internally i guess.
Can somebody confirm this on Ubuntu Unity?
This change doesn't work after packaging the game: indeed the icon gets converted to dds and gets a new name.
There are two possible fixes:
- P119 uses a CCacheLoader to detect the presence of a dds file in the archive, while not bothering to do the actual caching. It also prevents generating a mipmap during the dds conversion, because that would prevent the conversion to BGRA.
- We could move the window icon outside of art/textures/ so that it isn't cached by the archive builder. For instance art/icons/ might be a possibility.
It seems to me that the second one is easier and more sensible, because we're not caching the image in the first place, so why cache it during packaging? But maybe we should really cache it, in which case P119 is incomplete.