Changing App Icon

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.

Changing App Icon

Postby DXT on Tue Sep 20, 2011 4:03 am

Hello everyone

Is there a way to change the icon of the finished and merged .exe game file which is shown in the explorer? I already set the icon for the window itself with graphics.setIcon and it works fine for the taskbar and upper left window icon but the explorer icon is still the love default icon.

Sincere regards
DXT
Prole
 
Posts: 7
Joined: Tue Sep 20, 2011 3:41 am
Location: Germany

Re: Changing App Icon

Postby slime on Tue Sep 20, 2011 5:30 am

For Windows you might have to recompile the source with the new icon, I'm not sure. For OS X you can just stick the icon file inside the application package.
User avatar
slime
Solid Snayke
 
Posts: 1568
Joined: Mon Aug 23, 2010 6:45 am
Location: Canada

Re: Changing App Icon

Postby thelinx on Tue Sep 20, 2011 6:57 am

Use a program like Resource Hacker.
User avatar
thelinx
The Strongest
 
Posts: 844
Joined: Fri Sep 26, 2008 3:56 pm
Location: Sweden

Re: Changing App Icon

Postby TechnoCat on Tue Sep 20, 2011 3:18 pm

slime wrote:For Windows you might have to recompile the source with the new icon, I'm not sure. For OS X you can just stick the icon file inside the application package.

And for Linux you cry.
User avatar
TechnoCat
Inner party member
 
Posts: 1606
Joined: Thu Jul 30, 2009 12:31 am
Location: Chicago, IL

Re: Changing App Icon

Postby nevon on Tue Sep 20, 2011 3:50 pm

TechnoCat wrote:
slime wrote:For Windows you might have to recompile the source with the new icon, I'm not sure. For OS X you can just stick the icon file inside the application package.

And for Linux you cry.

For Linux, you create an .application file that points to an icon.
User avatar
nevon
Commander of the Circuloids
 
Posts: 938
Joined: Thu Feb 14, 2008 8:25 pm
Location: Luleå, Sweden

Re: Changing App Icon

Postby bartbes on Tue Sep 20, 2011 4:44 pm

That's .desktop, as for why, because applications themselves don't have icons.
Cowardly acts and the eating of birds must not be the deeds of a Hero of Storms. If the one being judged displeases the Adjudicator's master, the Golden Crow, the deceased soul will be gnawed upon until nothing but their bones remain.
User avatar
bartbes
Sex machine
 
Posts: 4125
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands

Re: Changing App Icon

Postby Robin on Tue Sep 20, 2011 5:01 pm

... because Linux is for teh leet command line haxorz.
Help us help you: attach a .love.
User avatar
Robin
The Omniscient
 
Posts: 6006
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands

Re: Changing App Icon

Postby T-Bone on Tue Sep 20, 2011 6:02 pm

For Linux, if you made a .deb file or an install script, the launcher can have whatever icon you want it to have.
My game called "Hat Cat and the Obvious Crimes Against the Fundamental Laws of Physics" is out now!
User avatar
T-Bone
Inner party member
 
Posts: 1104
Joined: Thu Jun 09, 2011 9:03 am

Re: Changing App Icon

Postby nevon on Tue Sep 20, 2011 6:03 pm

bartbes wrote:That's .desktop, as for why, because applications themselves don't have icons.

Uh, right. My bad. Been Linux-less for the past 4 months.

But they do reside in ~/.share/applications/ or /usr/share/applications/ :oops:
User avatar
nevon
Commander of the Circuloids
 
Posts: 938
Joined: Thu Feb 14, 2008 8:25 pm
Location: Luleå, Sweden

Re: Changing App Icon

Postby DXT on Tue Sep 20, 2011 7:39 pm

thelinx wrote:Use a program like Resource Hacker.


Kinda works, thanks for this. Btw, what is the simplest way to get .ico files?
DXT
Prole
 
Posts: 7
Joined: Tue Sep 20, 2011 3:41 am
Location: Germany

Next

Return to Support and Development

Who is online

Users browsing this forum: Bing [Bot] and 3 guests