Re: Lion permissions problem in /Library/Application Support
Re: Lion permissions problem in /Library/Application Support
- Subject: Re: Lion permissions problem in /Library/Application Support
- From: Howard Moon <email@hidden>
- Date: Tue, 13 Dec 2011 08:28:33 -0800
On Dec 13, 2011, at 8:15 AM, Per Olofsson wrote:
> 13 dec 2011 kl. 16:49 skrev Howard Moon:
>
>> Hi all,
>>
>> we've got AudioUnit plug-ins that write files that need to be accessible by all users, and have always put them in /Library/Application Support/Antares/..., but in Lion, our plug-ins are not able to write under Application Support unless the user first changes the permissions to allow Admin to have Read/Write access to that folder.
>>
>> Is there a way our Iceberg-based installers can modify the permissions on that folder? Or, is there a new location under Lion for all-user application files? (And if so, how would our plug-ins know they were running under Lion and be able to access the "correct" location?)
>
>
> I've always thought that /Users/Shared is the correct location for shared user files (as the name implies :). It's writeable by all, but the sticky bit is set so users can only rename or delete their own files.
>
> --
One would think that /Users/Shared might be the place, but this is from Apple's "File System Programming Guide: File System Basics" document:
> The Library directory is where applications and other code modules store their custom data files. Regardless of whether you are writing code for iOS or Mac OS X, understanding the structure of the Library directory is important. You use this directory to store data files, caches, resources, preferences, and even user data in some specific situations.
> ...
> /Library (Mac OS X only)—Applications that share resources between users store those resources in this version of the Librarydirectory.
> ...
> Application Support:
> Use this directory to store all application data files except those associated with the user’s documents. For example, you might use this directory to store application-created data files, configuration files, templates, or other fixed or modifiable resources that are managed by the application. An application might use this directory to store a modifiable copy of resources contained initially in the application’s bundle. A game might use this directory to store new levels purchased by the user and downloaded from a server.
> All content in this directory should be placed in a custom subdirectory whose name is that of your application’s bundle identifier or your company.
Since these files we're writing are data files, not documents that the user can edit (at least in the normal sense), we've always stored the files there ever since the introduction of OS X. It has always worked perfectly until Lion. Changing to another location such as /Users/Shared would make things very difficult for users who update their systems and have the files currently under /Library/Application Support/Antares.
But if our app can't *create* the Antares folder, then we've got a support problem!
Thanks,
Howard
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden