love icon indicating copy to clipboard operation
love copied to clipboard

Cannot change window icon on Linux

Open slime73 opened this issue 5 years ago • 4 comments

Original report by Vexatos (Bitbucket: Vexatos, GitHub: Vexatos).


As mistakenly pointed out in #1471, changing the window icon in conf.lua (or calling setIcon manually) works on Windows, but not on Linux using love 11.2. The attached file was confirmed to work on Windows 10, and to not change the icon on Linux Mint 19.1 Cinnamon (restarting Cinnamon to refresh didn't do anything, either).

slime73 avatar Mar 13 '19 07:03 slime73

Original comment by Bart van Strien (Bitbucket: bartbes, GitHub: bartbes).


Where are you looking for the icon? Depending on the location and the desktop environment, it may not be displaying the window icon at all, but rather the application icon. A possible implementation for finding (and thus setting) an application icon involves matching a window to a process, then matching that to a desktop file and using its icon. This means that if you end up shipping for linux, and deploying a desktop file, the correct icon should be found.

slime73 avatar Mar 13 '19 21:03 slime73

Original comment by Vexatos (Bitbucket: Vexatos, GitHub: Vexatos).


I am just running the attached .love file using love directly. It is looking for the icon inside the file as it is set in conf.lua.

slime73 avatar Mar 13 '19 21:03 slime73

Original comment by Bart van Strien (Bitbucket: bartbes, GitHub: bartbes).


I mean where on screen? I know a couple of years ago practically all docks didn't use window icons.

slime73 avatar Mar 13 '19 21:03 slime73

Original comment by Vexatos (Bitbucket: Vexatos, GitHub: Vexatos).


Ah, I am indeed talking about the icon on my task bar, as well as in windows like the Alt+Tab display. I have been told it used to work fine in prior versions of love2d, but I haven't had the chance to test that myself yet.

slime73 avatar Mar 13 '19 21:03 slime73