On Jan 15, 2007, at 9:47 AM, Wade Maxfield wrote:

I'm trying to use a RealSQLDatabase as a store for application information that will not change over the life of the application. It will change with each new release as I add supported items to the application by storing
information into the database here at home base.

I'm thinking that I need the SpecialFolder.CurrentWorkingDirectory as the
folderItem to set up the f.child("app.rsd") to get the database from.

However, on the Macintosh, under the Debugger, the CurrentWorkingDirectory
appears to be the root folder, not the application folder.

  How can I choose the application folder during debug as well as the
application folder during run time, on all platforms? I'd like to be able to have a couple of relative folders under the root application to get items
from in the future, also.

Also, please, please, PLEASE, PLEASE, DO NOT USE THE APPLICATION FOLDER TO STORE STUFF!!!

On Mac OS X, Windows, and Linux, you may not have permissions to write or change ANYTHING there.

On the Mac, you can use the system Application Support folder (create a folder inside there that has the proper permissions). On Linux, you can put things in a directory inside /var (that has the proper permissions). On Windows, you can put things in a directory inside the appropriate system data folder.

ALWAYS make sure that your program works correctly on non- administrator users!

--
Glenn L. Austin <><
Computer Wizard and Race Car Driver
<[EMAIL PROTECTED]>
<http://www.austin-home.com/glenn/>


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to