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
Added support for mod defined window icon #19528
base: bleed
Are you sure you want to change the base?
Conversation
Can you explain the benefit of having a separate |
On closer inspection #19289 appears to be a bug in your OS's appimage integration, not with OpenRA. The current release shows the mod's launcher icon in all the places I expect, except for the macOS compat build which we had accepted is not worth the trouble to fix. This includes Gnome on my Ubuntu system (in the top bar): While this is effectively a no-op for me on I see no problem with allowing mods to customize the window title, so can we please limit this PR to just that and close #19289 as not-an-openra-bug? |
Superseded by #19533. I want to keep this one for reference as the implementation itself seems correct. |
Note that this also had a crash issue after switching from the content installer into the mod for the first time. Subsequent launches were ok. |
17ff2cf
to
ca89056
Compare
I still don't support this PR because it is hacking around one small part of the problem while being fundamentally incapable of fixing all the rest. If the problems of DE integration are important enough to solve then we should be focusing on building a system that shows a "Do you want to install system integration" prompt on first run that writes out the desktop file and icons to the user directories. This is the proper fix to these problems, without risking collateral damage. |
This is not about desktop integration. This is about the simplest thing an application should do: have an icon, and I don't think https://wiki.libsdl.org/SDL_SetWindowIcon is anywhere near a hack. It is an essential thing that has been missing for years. |
The thing is that icon's aren't simple, and haven't been for many years. The creation of HiDPI displays and Wayland fundamentally changed the way that many of these legacy systems work. KDE and Gnome both rely on the XDG desktop / related specifications for properly handling icons now. |
What is the status here? |
What's the mainstream way of doing it? On mac I don't think I've seen an application have their icon at the window header. I tried launching a bunch of apps, direct ports like Gimp, Blender, Inscape have an SDL/OpenRA-like empty header with just the window options and the app name. Spotify doesn't even include the name. Many of others either have the window options integrated into the UI (header doesn't exist) or fill the header with extra useful information / options |
On Linux, everything has a proper icon, even closed-source Electron stuff. OpenRA stands out as broken. |
OpenRA does have proper icons though, so long as your desktop environment properly supports the XDG Desktop Entry spec and you have the .desktop file installed to an appropriate location. |
This covers the case where you don't have that, e.g. during development, startup and older desktop environments OpenHV/OpenHV#336 (comment). |
I remain opposed to adding new mod.yaml definitions (creating confusion for modders) to control something that won't be seen by >99.9% of players. I filed #20917 to help inform future discussions of this nature. |
I'll also note that this doesn't work under Wayland (confirmed with #20914) as mentioned above. |
Where would you source |
Closes #19289