Recent

Author Topic: Icon Application  (Read 756 times)

berghem

  • Jr. Member
  • **
  • Posts: 60
Icon Application
« on: February 27, 2021, 07:18:08 pm »
Hi all
in my appliacation I want my personal icon, I seted  the Icon in Project --> Project Option, but in exe file I have the default icon...

« Last Edit: February 27, 2021, 07:20:54 pm by berghem »

jamie

  • Hero Member
  • *****
  • Posts: 6090
Re: Icon Application
« Reply #1 on: February 27, 2021, 07:27:10 pm »
clean and build ?
The only true wisdom is knowing you know nothing

lucamar

  • Hero Member
  • *****
  • Posts: 4219
Re: Icon Application
« Reply #2 on: February 27, 2021, 07:44:34 pm »
Usually, in Linux desktops, the icon won't be taken from the exe file itself since there is no "standard" way to do it.

To associate an icon with an application you have to either create (and install) a .desktop file or use some other mechanism like, for example, doing Alt+Enter in the file manager to show the exec file properties and changing the icon there.

Note also that in both cases (and most others I know of) the icon has to be a separate file and in a recognizable image format (png, svg, ppm, pnm, etc.)
« Last Edit: February 27, 2021, 07:47:20 pm by lucamar »
Turbo Pascal 3 CP/M - Amstrad PCW 8256 (512 KB !!!) :P
Lazarus/FPC 2.0.8/3.0.4 & 2.0.12/3.2.0 - 32/64 bits on:
(K|L|X)Ubuntu 12..18, Windows XP, 7, 10 and various DOSes.

berghem

  • Jr. Member
  • **
  • Posts: 60
Re: Icon Application
« Reply #3 on: February 27, 2021, 08:46:15 pm »
Thanks Lucamar I unferstood. My application is for raspbery PI  and it's a free software. I have to study a little script for this problem when the people download the file.

Fred vS

  • Hero Member
  • *****
  • Posts: 3158
    • StrumPract is the musicians best friend
Re: Icon Application
« Reply #4 on: February 27, 2021, 08:53:45 pm »
Thanks Lucamar I unferstood. My application is for raspbery PI  and it's a free software. I have to study a little script for this problem when the people download the file.

Hello.

You may take a look at InstallJammer:
https://sourceforge.net/projects/installjammer/

It is a old project but it does still perfectly his job.
It works very well for Linux applications and will create and install all what you want, including icons.

Fre;D
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

 

TinyPortal © 2005-2018