Hi,

Am Donnerstag, den 19.01.2006, 17:30 -0200 schrieb Felipe Monteiro de
Carvalho:
> On 1/19/06, Graeme Geldenhuys <[EMAIL PROTECTED]> wrote:
> > For the life of me, I cannot find any information on how to add a main
> > program icon to a app compiled in Lazarus.  Can or must it really be
> > this difficult?  Can we have a option in the Project Options to select
> > a icon (something like Delphi)?

> Take a look how I did with the magnifier:
> http://sourceforge.net/projects/magnifier
> 
> I created a .rc file which includes a .ico file. I then compile the
> file into a .res file with the help of a .bat script that calls
> windres.
> 
> Then I include the .res file into my software with {$R resource.res}
> 
> > Does Linux support app icons?

> 
> Yes it does. There are probably other ways, but it looks on the
> default icon directories for program icons. If you program is called
> USB, then he will look into /usr/share/icons or similar for a USB.xmp
> file.

Almost :)

On Linux Desktops:

For a launchable desktop application, there is
a /usr/share/applications/namedoesntmatter.desktop file.

This file contains Name (title), Comments, Executable name, Supported
File Types, Actions, and the Icon name for the application.

So the icon that shows up in desktop environment menus etc is the one
mentioned there. That's the one that is also searched for
in /usr/share/icons (and the current theme's dir).

The icon that shows up when the application is actually running (i.e. in
the taskbar/panel icon) is the one set by gtk_window_set_icon_name
(searches the icon theme) or gtk_window_set_icon (with an inline icon)


> 
> Recently, support for {R$ } directive on linux was added to the
> compiler. I don“t know how this helps, however.

cool :)

no idea what that's for in practise... Unix usually goes the other way,
separating everything, not stuffing everything and their brother into
one file.

(with newer filesystems even file attributes like permissions, ... are
files themselves)

cheers,
  Danny


_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to