Re: FEATURE: Icon Resource in application binaries



Hi,

Am Fre, den 25.06.2004 um 20:38 Uhr +0100 schrieb Mike Hearn:
> On Fri, 2004-06-25 at 22:27 +0300, Ionut Cotoi wrote:
> > Still didn't convinced us Mike,
> > it's not so hard to implement this "basic" feature, adn I think we
> > should propose a standard trough freedesktop.org to do this.
> 
> Well, alright, go ahead. I still think it'd be better to eliminate the
> times users are exposed to raw ELF binaries but if you are desperate for
> this feature then I'd suggest having a couple of standard exported
> symbol like freedesktop_icon_data or freedesktop_icon_function. 

or just put the icon into an extended attribute for the file and be over
with... (the package which is shipped for the binaries would set it to
the right thing when unpacking) ... maybe I'm missing something
though...

> If the _function symbol is present it's called with no arguments and
> returns a pointer to a block of memory containing the icon data. If it's
> a variable (ie in .rodata) it's just read by the VFS. The format of the
> icon data should be simple enough.

Hm, and what happens if it is a shell script ? Or a mono executable ?
(which are the two major uses I could see for icons for executables,
since mono .exe assemblies and shell scripts aren't usually in /usr/bin
- i.e. where nobody sane points a filebrowser to ;))

cheers,
   Danny

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]