Where do you save preferences?

Igor de Oliveira Couto igor at superstudent.net
Sat Jun 16 19:09:47 EDT 2012

Hello, Bill,

Not very long ago, I had the same question, and several users contributed their knowledge and experience in the different platforms, helping me compile an answer:

On 17/06/2012, at 6:28 AM, Bill Vlahos wrote:

> Where do folks put application specific preferences on Windows and LInux?

The answer I compiled from all replies and pointers received was:

1) MacOS X
Prefs Location: specialFolderPath("Home") & "/Library/Application Support/MyCompany/MyAppBundleID/" - - Apple requires you to use the application's bundle id for the *folder name*

2) Windows
Prefs Location: specialFolderPath("0x001a") & "/MyApp/"

3) Linux
Prefs Location: there does not seem to be a 'standard', but several programs seem to take the approach of creating a hidden folder in the user's home directory - specialFolderPath("Home") & "/.myapp/"

4) iOS
Prefs Location: specialFolderPath("library") & "/MyAppBundleID/" - Apple requires you to use the application's bundle id for the *folder name*

5) Android
Prefs Location: specialFolderPath("documents")

The information above will help you find or create the appropriate directory in which to save your preferences file. The preferences file itself can be called pretty much anything you want, as there do not seem to be any strict guidelines in any current platform.

I hope this information helps!

Igor Couto
Sydney, Australia

More information about the Use-livecode mailing list