howto associate my custom icon with my program lazarus / 32-Linux ---------------------------------------------------------------------- jw · 2018-04-27 02:50 Linux mint 18.3 XFCE FPC 3 lazarus 1.8.0 It seems that Linux ELF's do allow for embedded icon information.  So loading in my cool icon under project options does nothing; yet firefox has managed to associate an icon with their app somehow.  So does anybody know of a way to provide icon information to linux via a simple stand alone executable with no need for it's own directory etc? ---------------------------------------------------------------------- RAW · 2018-04-27 03:31 On Windows you can do it with RESOURCE HACKER (FREEWARE) or use any other ResEditor... Find yourself a nice editor for Linux if you don't like the LAZARUS- WAY (Project Options -> Applications Settings). ---------------------------------------------------------------------- Phil · 2018-04-27 03:34 Quote from: jw on April 27, 2018, 04:50:23 amLinux mint 18.3 XFCE FPC 3 lazarus 1.8.0 It seems that Linux ELF's do allow for embedded icon information.  So loading in my cool icon under project options does nothing; yet firefox has managed to associate an icon with their app somehow.  So does anybody know of a way to provide icon information to linux via a simple stand alone executable with no need for it's own directory etc? On Ubuntu, an app's .desktop file specifies its icon. See the lazarus.desktop file in /usr/share/applications. The icon itself (lazarus.png) is in /usr/share/pixmaps. Look for Firefox's: find / -name firefox.png When you install a .deb package, it copies the app's .desktop and icon .png file to their respective locations. Embedding the icon in the executable is a Windows thing. That's not how Linux or macOS does it. ---------------------------------------------------------------------- RAW · 2018-04-27 03:41 QuoteEmbedding the icon in the executable is a Windows thing. That's not how Linux or macOS does it. Aaaah, Ok.... Windows is sooooo smart.... of course not every Windows version...