Change Icon of the .exe file of the game

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Godot_Starter

I downloadet recit and connected it with godot in the editor settings.

I did a Picture in the datatyp .ico with a resolution of 256*256 pixels (You can download it with the link below)

And I exported my game and set application->icon in the exportsettings to my .ico file.

But it is still the default godot icon on my desktop and in the taskbar.

In the top left corner of the game window is the new icon, but maybe it is because I also set a icon in the project settings, so that in the project list in godot this project is shown with the icon.

How can I fix this?

Downloadlink for the icon (as .ico):

:bust_in_silhouette: Reply From: jgodfrey

Assuming you’re talking about a Windows export, there are a number of steps to get everything right. See the docs here for details:

I followed it and I if I run the .exe file in the taskbar is the right icon. If I drag and drop the .exe and file on my desktop it also shows the right icon on the desktop. If I do a connection to the .exe file while it is on the desktop the connection also gets the right icon.

BUT if I do the connection to the .exe file, while it is in the file system, the connection gets the godot icon and in the file system the .exe file also has the godot icon.

Is there a way getting arround this? It would be enough if the connection on the desktop has the right icon not the .exe file in the file system, but i think there is a connection :slight_smile: between these two problems.

Godot_Starter | 2020-11-11 19:30

And yes I am talking about windows 10

Godot_Starter | 2020-11-11 19:31

I just noticed that if I right click on the connection on my desktop with the wrong icon, i can press permissons and change icon and then I can choose from the godot icon and my icon, whyever, maybe it helps

Godot_Starter | 2020-11-11 19:34

Just guessing, but you’re likely experiencing one of two things:

  • A basic Windows icon cache refresh issue. Sometimes windows isn’t good about updating the icon cache when changes are made. A reboot should fix it if that’s the case.

  • Maybe the ICO file you supplied is missing some sizes and/or color depths that Windows uses for certain cases. You could do some poking around by installing something like ResourceHacker (Resource Hacker). With that installed, you can drag your executable into it and see the various icons / sizes / color depths that it contains. With that info, you should be able to tell what your icon is missing so you can supply them.

jgodfrey | 2020-11-11 19:59