Hello,

On 7/26/07, TMC <[EMAIL PROTECTED]> wrote:
>
> Hello all,
> I have discovered a very useful Mac OS X utility: AppTrap
> http://konstochvanligasaker.se/apptrap/
> It essentially removes all app-related files when it detects that a .app
> bundle was moved to the trash. This type of (un)install was discussed for
> use when installing apps and frameworks / libraries [1]. AppTrap is open
> source, but I doubt its mechanisms would be helpful in Etoile. Nevertheless,
> this is certainly useful to show us how such a system could be implemented.
>

Not having looked at the code I can only imagine how it works, but I
think the more complex part would be the "magic" necessary for having
specific actions according to file type in the Trash (probably easily
doable, but bot directly linked with Installer or any other app). If
that is possible, then I would imagine that something like AppTrap
would:

1) Be called with the "Foo.app" argument, since it's the app folder
being deleted.
2) Check in the Receipts directory for "Foo.bar"
3) Look at the BOM file, remove everything in there
4) If no errors have occured, exit silently.

At least this is how I would do it, AppTrash can do it differently.
The idea is good because Applications often contain both normal app
dirs, which where not installed with Installer and are self-contained,
and programs that have files all around the filesystem, and an end
user should not be burden to remember that.

Regards,

Frederico Muñoz

_______________________________________________
Etoile-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/etoile-discuss

Répondre à