[racket] DrRacket, OSX, and xattr

From: Robby Findler (robby at eecs.northwestern.edu)
Date: Thu Jul 24 19:25:43 EDT 2014

It is setting itself as the owner of the file so that subsequent
double-clicks on the file will open the file in DrRacket.

This was the recommended behavior back in the day before you could
associate extensions with applications (I think).

Why do you want to disable it?

Robby

On Thu, Jul 24, 2014 at 3:43 PM, Spencer Florence
<florence at northwestern.edu> wrote:
> Hi all,
>
> Whenever I save a file with DrRacket on OSX, it always sets some extended
> attributes on the file. Specifically it sets:
>
> [snips:pl7/examples] xattr -l somefile.rkt
> com.apple.FinderInfo:
> 00000000  54 45 58 54 44 72 53 63 00 00 00 00 00 00 00 00
> |TEXTDrSc........|
> 00000010  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> |................|
> 00000020
>
> In addition if I clear the xattr's (via xattr -c) DrRacket treats this as an
> external write to the file and prompts me to overwrite on save and revert on
> run. Is this behavior intended? It seems odd given that DrRacket doesn't do
> this with normal attributes (permission, suid bit, etc.) If it is intended
> what is the rational and can I disable it?
>
> --Spencer
>
>
>
> ____________________
>   Racket Users list:
>   http://lists.racket-lang.org/users
>

Posted on the users mailing list.