Re: Where to put writable files available to all users
Re: Where to put writable files available to all users
- Subject: Re: Where to put writable files available to all users
- From: j o a r <email@hidden>
- Date: Sat, 14 Jun 2003 13:19:58 +0200
IMO...
Have the application look for this file in "the usual" places, ie.:
~/Library/Application Support/Acronyms
/Library/Application Support/Acronyms
/Network/Library/Application Support/Acronyms
<App Wrapper>/Contents/Resources/Acronyms
...and in this order! There are Cocoa functionality available to help
you with this, look in the Foundation functions reference docs. You
would of course ship the app with the latest version of the file in the
app wrapper.
In that way you can allow your users to update the copy in their own
library folder, without compromising the security of the system and of
other users. You can in this way also allow an admin user to manage the
updates by placing them in one of the other library domains, in which
case they will be made available to all users with access to these
domains.
j o a r
On Saturday, Jun 14, 2003, at 12:08 Europe/Stockholm, Angela Brett
wrote:
I'm writing an app which is for viewing the acronyms from my site
offline, and I'm wondering where to put the acronym data files. They
are pretty much essential, since there's not a lot of point having an
acronym viewer with no acronyms, so they'd have to be available to be
read by all users.
The usual answer to this would be to put them in the application's
bundle, but I'd like people to be able to click a button to update the
data with the newest acronyms from the site, without having to
download a whole new version of the program. People can also add their
own acronyms. So the acronym data directory has to be writable, and
that can't be guaranteed of the application bundle.
At the moment I'm using /Library/Application Support/Acronyms but
according to SystemOverview.pdf (and of course the actual permissions)
this is only writable for admin users. I guess I could make it so
people have to enter an admin username/password to update acronyms
from the site, and store their own additions in ~/Library/Application
Support/Acronyms, but that seems like quite a hassle. Still, it's
probably a bad idea security-wise for there to even be a
world-writable directory like I'm looking for, so maybe that is the
best solution. Maybe I'm thinking about this in the wrong way.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.