Skip navigation.
 
mlRe: "First Run" installation of Application support stuff?
FROM : Jeff Disher
DATE : Mon Dec 16 22:11:30 2002

If you apply those principle, your software will not function correctly
on a multi-user system.  Preferences are kept per-user which is
logical.  Also, depending on a user's umask, them running your
application may cause them to overwrite files which other users will no
longer be able to read, thus rendering your program unpredictable (or
at the very least pref-less).

Having recently converted my family's home system to OS X, I can tell
that many developers are making this mistake.  It is all-to-frequent a
problem that one user installs something and it is not run correctly by
other users because they don't have write permission to the app bundle
installed by the other user.

Application Support is needed since it is a world-writable directory. 
So long as what is written there is done so with world-writable
permissions, you cannot have this problem.  Plus, it does not make
sense to keep the user prefs anywhere but in the user space.

The only time I would consider manipulating data in the app bundle is
for plug-ins.  Just make your app copy the plugin to where it wants to
after acquiring admin privileges.

Also, I don't actually see why a prefs folder full of extra stuff
matters.  Few preference files are larger than a few KB and the user
never needs to go look at them.  I think that the way things are done
right now is much better for the end-user in that they only worry about
the app bundle.  Everything else just works.

This makes for simpler install and un-install (there is no downside to
leaving prefs there like their is with Windows - the prefs are ignored
until an app wants to look at them).
It is slightly less obvious to find support files but anyone who would
be doing that themselves would know how to find them (and it doesn't
confuse otherwise newbie users with extra files floating around).

Just my ideas on the subject, though,
Jeff.


On Monday, December 16, 2002, at 03:40 PM, Udo Ludtke wrote:

> On 2002/12/16 0:13, "<email_removed>"
> <<email_removed>> wrote:
>

>> I would just like to make a plea for NOT putting stuff in
>> /Library/Application Support/Whatever without thinking really hard
>> about it...  For example, don't just copy a bunch of stuff in there
>> that could just as easily be in the app wrapper...  If you want to
>> support machine-wide optional stuff in that location, fine.  But
>> applications that simply copy a bunch of stuff there for no good
>> reason
>> (you know who you are) are annoying.
>>
>> Same goes for ~/Library/Application Support/Whatever, but in this
>> case,
>> copying or creating stuff there is more forgivable, if it is something
>> that makes sense.

>
> I did have a similar complaint in the pre-OS X days about the
> preference
> folder. Without manual clean-outs it turned into a real garbage
> collection.
> Any shareware I tried out and then dumped left a trail of bits and
> pieces.
>
> OS X allows a much cleaner installation mode.
>
> I believe the cleanest installations put ALL bits and pieces in ONLY
> two
> locations:
> 1) In a folder enclosing the application, in the Application folder.
> 2) In the app wrapper.
>
> I know this goes against Apple's guidelines, but I strongly believe
> even
> prefs are best put in the the app folder.
>
> This will:
> 1)  Make a clean, simple installation.
> 2)  Make it easy for users to find support files if she needs to
> trouble
>    shoot (in particular if the supporting files and folders are named
>    logically)
> 3) Make it easy to un-install.
>
> Udo

_______________________________________________
cocoa-dev mailing list | <email_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

Related mailsAuthorDate
ml"First Run" installation of Application support stuff? Dave Yost Dec 8, 06:14
mlRe: "First Run" installation of Application support stuff? Sherm Pendley Dec 8, 07:52
mlRe: "First Run" installation of Application support stuff? Dave Yost Dec 8, 09:03
mlRe: "First Run" installation of Application support stuff? Scott Anguish Dec 8, 09:36
mlRe: "First Run" installation of Application support stuff? Jeff Disher Dec 8, 22:08
mlRe: "First Run" installation of Application support stuff? Andreas Mayer Dec 9, 00:39
mlRe: "First Run" installation of Application support stuff? Scott Anguish Dec 9, 02:02
mlRe: "First Run" installation of Application support stuff? Scott Anguish Dec 9, 02:27
mlHrm... I wonder... Re: "First Run" installation of Application support stuff? Scott Anguish Dec 9, 02:39
mlRe: Hrm... I wonder... Re: "First Run" installation of Application support stuff? Georg Tuparev Dec 9, 10:22
mlRe: Hrm... I wonder... Re: "First Run" installation of Application support stuff? Andreas Mayer Dec 9, 12:55
mlRe: "First Run" installation of Application support stuff? Jeff Disher Dec 9, 15:09
mlRe: Hrm... I wonder... Re: "First Run" installation of Application support stuff? Eric Wang Dec 9, 18:57
mlRe: "First Run" installation of Application support stuff? Dave Yost Dec 15, 06:16
mlRe: "First Run" installation of Application support stuff? Mike Ferris Dec 15, 22:27
mlRe: "First Run" installation of Application support stuff? Georg Tuparev Dec 16, 01:44
mlRe: "First Run" installation of Application support stuff? Chris Ridd Dec 16, 07:37
mlRe: "First Run" installation of Application support stuff? Bill Bumgarner Dec 16, 17:07
mlRe: "First Run" installation of Application support stuff? Mike Ferris Dec 16, 18:56
mlRe: "First Run" installation of Application support stuff? Udo Ludtke Dec 16, 21:40
mlRe: "First Run" installation of Application support stuff? Udo Ludtke Dec 16, 21:40
mlRe: "First Run" installation of Application support stuff? Clark S. Cox III Dec 16, 22:07
mlRe: "First Run" installation of Application support stuff? Jeff Disher Dec 16, 22:11
mlRe: "First Run" installation of Application support stuff? John Nairn Dec 16, 22:20
mlRe: "First Run" installation of Application support stuff? Bill Bumgarner Dec 18, 20:26
mlRe: "First Run" installation of Application support stuff? John C. Randolph Dec 18, 22:09
mlRe: "First Run" installation of Application support stuff? Peter Sichel Dec 18, 22:18
mlRe: "First Run" installation of Application support stuff? David W. Halliday Dec 18, 23:54
mlRe: "First Run" installation of Application support stuff? Mike Ferris Dec 19, 00:13
mlRe: "First Run" installation of Application support stuff? Jim Balhoff Dec 19, 00:18
mlRe: "First Run" installation of Application support stuff? John C. Randolph Dec 19, 01:31
mlRe: "First Run" installation of Application support stuff? Michael Latta Dec 19, 01:35
mlRE: "First Run" installation of Application support stuff? Phil Barrett Dec 19, 09:32
mlRe: "First Run" installation of Application support stuff? Ben Hines Dec 19, 09:52
mlRe: "First Run" installation of Application support stuff? Finlay Dobbie Dec 19, 12:23
mlRe: "First run" installation of Application support stuff? Jean-Olivier Lanct… Dec 19, 13:23
mlRe: "First Run" installation of Application support stuff? Rainer Brockerhoff Dec 19, 15:16
mlRe: "First Run" installation of Application support stuff? Peter Sichel Dec 19, 15:28
mlRe: "First Run" installation of Application support stuff? Sheehan Olver Dec 19, 20:50
mlRe: "First Run" installation of Application support stuff? Mike Ferris Dec 19, 21:53
mlRe: "First Run" installation of Application support stuff? Peter Sichel Dec 19, 22:29
mlRe: "First Run" installation of Application support stuff? Sheehan Olver Dec 19, 23:16
mlRe: "First Run" installation of Application support stuff? Rainer Brockerhoff Dec 19, 23:33
mlRe: "First Run" installation of Application support stuff? Mike Ferris Dec 20, 18:33