Re: .package icon
"Isak Savo" <[email protected]>
| Newsgroups | gmane.comp.autopackage.devel |
|---|---|
| Message-ID | <[email protected]> |
2007/10/7, Andrew Smith <[email protected]>: > > I see that the icon for .package files I downloaded is the autopackage > icon, but running `file` on the package file says it's a Bourne-Again > shell script text executable. Yes, technically autopackages ARE "bourne-again shell script executables" > How did you manage to trick file managers to display the autopackage icon? Because file managers doesn't blindly look at contents. Two things distinguishes an autopackage from a shell script: 1) It has the string '#autopackage' on position 12 in the file and 2) It has the extension .package These two things are defined in an xml file[1] in the format specified by the freedesktop shared mime specification[2]. This xml file is installed with autopackage and is then used by the file manager. If you don't have autopackage installed, your file manager will think a .package file is an executable shell script. -Isak [1] http://trac.autopackage.org/browser/frontend/trunk/gtkfe/gnome/autopackage.xml.in [2] http://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec --------------------------------------------------------------------- To unsubscribe, e-mail: autopackage-dev-unsubscribe-OfajU3CKLf1/[email protected] For additional commands, e-mail: autopackage-dev-help-OfajU3CKLf1/[email protected]