[AD] Linux Icons

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


This is a multipart message in MIME format.
One thing I'd like to get fixed before 5.1.9 is icons on Linux.
al_set_display_icon works on many WMs but not on Unity (arguably the most
popular WM.) On Unity you have to have a .desktop file to have an icon in
alt-tab and in the taskbar. Fine. But when I create a .desktop, I still get
no icon.

I'm using the game Dustforce as a reference for a game that has an icon. I
copied their .desktop files exactly only changing the name of the game.
After running xprop on my game and theirs there are some differences. With
the attached patch, most of those differences are gone, at least the ones
that look significant.

There's one key difference: _NET_WM_ICON(CARDINAL) = is a blank (but
existing) line for Dustforce. For my game it depends if I call
al_set_display_icon or not. If I don't, the line doesn't appear, if I do, it
appears but I get an ascii version of the icon in the text.

So I think that's significant. What are they doing differently? I've looked
at SDL 2.0 code (which is where I found most of the changes for attached
patch) but have found nothing else that looks important.



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/