Xcode 4.3: Apparently Persistent License Agreement

Harald Hanche-Olsen hanche at math.ntnu.no
Sun Mar 4 13:46:30 PST 2012


[Harald Hanche-Olsen <hanche at math.ntnu.no> (2012-03-04 21:38:46 UTC)]

> [Harald Hanche-Olsen <hanche at math.ntnu.no> (2012-03-04 21:30:49 UTC)]
> 
> > How exactly does it determine where to copy the accepted license from?
> 
> I got it; by examining $HOME, which is not changed by sudo.

So here is a suggestion for making it more robust:

If no license agreement is found in $HOME/Library/Preferences, look
instead in ~$SUDO_USER/Library/Preferences (probably not valid syntax,
but I trust the intent is clear).

- Harald


More information about the macports-users mailing list