Just wondering how exactly you go about setting the window icon using Love?
I've tried using both love.window.setIcon() & supplying the file-path to my image in my config.lua file but both to no avail :/.
Doesn't that option only affect Windows anyway? It only sets the icon that appears in the titlebar. It has nothing to do with changing the icon of the application. The Wiki doesn't clarify but I'm pretty sure it's only used in Windows. (OS X doesn't even have an icon in the titlebar unless the app uses a document metaphor, which Löve doesn't of course.)
Side note: It'd be cool if Löve had a separate option for setting the icon that appears in the Taskbar/Dock that would work across all OS'. Not that it's a really important feature for a game, but whatever.
What I do with Hat Cat is to not do anything about that in the code, and then build versions of the game for Windows and Mac OS X. For the Windows .exe you can use Resource Hacker to change the icon. For the Mac .app, you can just replace some .icns files inside and it will look nice. For Lunix, there's no nice solution though. I guess you could distribute a .desktop file together with your .love that both launches the game and looks pretty.
Well, there's three different things that are independent from each other: the window icon (setIcon), the taskbar/dock/unity icon (???), the launcher/file explorer icon (ResHacker/.icns/.desktop, depending on platform).
Robin wrote:Well, there's three different things that are independent from each other: the window icon (setIcon), the taskbar/dock/unity icon (???), the launcher/file explorer icon (ResHacker/.icns/.desktop, depending on platform).
Does this function work correctly for others (regardless of platform)?
So I tried, but it doesn't work for me either (Ubuntu 12.04). (Included a .love that others can run and report back here with little effort on their part.)