Appropriate directory for themes, logs and config files

Hello, I would like to know what would be the appropriate directory to place a application's config directory that contains themes, logs and config files for that application.
I want that directory to be accessible but since ~/Library is now invisible on Lion, that kinda rules it out for accessibility. The only place left now would be ~/Applications, but I don't think it was intended for that.
There is also an invisible config file that contains the path to the config directory and that's what the app uses to know where the config directory is located. The current emplacement of that config file is in the home directory, which I think is not in accordance to Apple's guidelines. So where should I place that file?
What should I do?
Thanks

Whee wrote:
I wish I could choose both of your answers as being the good one.
Thanks for the additional info about the Home and Documents directory, that clears a lot of things up. I needed to know that too. Do you know where that documents is located now? http://developer.apple.com/library/mac/#documentation/MacOSX/Conceptual/BPFileSy stem/Articles/WhereToPutFiles.html
Apple prefers you use the system API for these things. Here is one document that explains it.
So even though I won't use NSDefaults because what I am working on is a cross Platform app that is in C, I will put the config file in ~/Library/Preferences and the config folder in ~/Library/Application Support.
Almost everything has a C equivalent. You can use CFPreferences instead. I strongly urge you to use one of the system APIs instead of trying to write your own files. For one thing, the user can put their home directory virtually anywhere they want. For another, Lion is rewriting the underlying architecture with the new screen sharing and iCloud. If you use the system APIs, your program will work properly with any new technologies or custom network settings.

Similar Messages

  • Using Sym Links for .dbf, .log, and .ctl files?  Will this work in 10g?

    Hello,
    We have an old database server we use for testing/development and it's running very low on diskspace on one of the filesystems on the box. At this point in time, adding space is not a simple option for several reasons. However, there are several other data partitions on this server with plenty of space available.
    I read a paper published by Sun Microsystems that advocates the use of symbolic links for dbf, ctl, and log files:
    http://www.sun.com/blueprints/0103/817-1048.pdf
    Are there any drawbacks/caveats we need to be aware of, or is this really as simple as just stopping the db, moving a few files to another fs, symlinking their locations, and restarting the db?
    Thanks for your input/advice.

    I think you should verify this with Oracle Support.
    This is the perfect measure to have them drop the phone on you.
    Sybrand Bakker
    Senior Oracle DBA

  • Reporting tool for access.log and other files

    Any know of a good reporting tool to make useful reports out of the log files in
    Weblogic?

    I think you should verify this with Oracle Support.
    This is the perfect measure to have them drop the phone on you.
    Sybrand Bakker
    Senior Oracle DBA

  • How to get Log and Output File Names for a concurrent request

    Hi,
    I am submitting a concurrent frm OAF with the following code in AM
    try{
    OADBTransaction tx = getOADBTransaction();
    Connection conn = tx.getJdbcConnection();
    ConcurrentRequest cr = new ConcurrentRequest(conn);
    Vector parameters = new Vector();
    parameters.addElement("10");
    nRequestID= cr.submitRequest("CIE","DTFEMP","","",false,parameters);
    tx.commit();
    }catch(RequestSubmissionException e)
    How do i get the handle to log and output files for the abvoe concurrent request ?
    One more thing is there a way where we can evaluate the environment variables
    like in the above example once i get a the request id
    logfile = $APPLCSF/$APPLOUT/"l"+requestID+".log"
    and
    outputfile=$APPLCSF/$APPLOUT/"o"+requestID+".out"
    is there a way i can get the values of $APPLCSF and $APPLOUT from the os ?
    Thanks
    Tom...
    Thanks
    Tom ...

    You can query the Fnd_Concurrent_Requests table using Request_ID, which has the log & out file directory details.
    Hth
    Srini

  • Block size in tt for writing data to transaction log and checkpoint files

    Hello,
    what block size is TimesTen using when its writing data to transaction log and checkpoint files? Does it use some fixed block size during filesystem writes?

    Although in theory logging can write 2 KB blocks in almost all circumstances it will write 4 KB or larger so yes a filesystem with a 4 KB block size is fine for both checkpointing and logging.
    Chris

  • APIs for accessing the ESS log and output files from UCM

    Hi,
    As I understand, the output and log files of an ESS job will be uploaded to UCM.
    We have a requirement where in we are building a simple error handling framework, which gets triggered after a series of ESS jobs are run. In the error handling framework based on some processing logic we need to e-mail the error or log files to the users. I am not able to find any information related to retrieving the log and output files for and ESS job from UCM. Any inputs on this will be appreciated.
    Thanks for your help,
    Thiru

    For accessing content in UCM you can use the RIDC APIs or UCM Web Services. Note that the UCM also provides features for workflow etc. that could potentially be used for notifications refer to the developer guide for details. For UCM related questions you may want to use this forum instead
    Jani Rautiainen
    Fusion Applications Developer Relations
    https://blogs.oracle.com/fadevrel/

  • Useful logs and trace files

    Hello experts, for our Netweaver AS administration, I am in charge of periodically checking logs and trace files. I would like to know which are the most useful logs and trace files and the information each one will hold. I am familiar with "DefaultTrace.trc", and as of today it is the only one I have used, but I believe I should also be looking at other logs and trace files.
    Any suggestions?

    Hi Pedro,
    If you are talking about JAVA only system defaulttrace is the best log/trace to look, there are other log files like application log, but maybe the best way to check you logs is using NWA (NetWeaver Administrator) on the following URL on your JAVA system:
    http://<hostname>:<port>/nwa
    From there you need to go to Monitoring -> Logs and Traces and then Predefined View/SAP logs.
    My other recommendation is to change the severity level to ERROR for all you JAVA component within the Visual Administrator -> ServeNode -> Services -> Log Configurator -> Locations, otherwise it is possible that you see a lot of garbage on the defaulttraces. Anyway you can change the severity level per component, on demand, to investigate any possible problem.
    The work directory is very imporant and maybe you can also check the file "dev_serverX" that also will give you information about any out of memory conditions and garbage collection activity if you have these values set for the server node using the config tool:
    -verbose:gc
    -XX:+PrintGCDetails
    -XX:+PrintGCTimeStamps
    You can find more information on here:
    http://help.sap.com/saphelp_nw70/helpdata/en/ac/e9d8a51c732e42bd0e7de54b9ff4e2/content.htm
    Hopefully this help you, let me know if you need more information,
    Zareh

  • I want to use my 1TB Seagate Hard drive for time machine and transferring files from Mac to PC.

    For about a year I've been using my 1TB external hard drive for only time machine. To be honest, it wasn't until today that I tried to connect my hard drive to a PC and realize it isn't compatible. I read about partitioning the hard drive so that it can work both for time machine and transferring files between pc and mac. I'm not what you would call tech savvy, so I was wondering if I can get some advice on how to do this.
    Thanks in advance.

    To do it, you have to partition the hard disk, so you will have one partition for Time Machine and another one to store files and use them in a PC and Mac. To create the partition, follow these steps > http://pondini.org/OSX/DU3.html
    In order to read and write in the external disk on the PC, you have to select "MS-DOS (FAT)" as "Format". If you choose any other option, the PC won't be able to read your external disk. Apart from that, note that you can't use files bigger than 4 GB with FAT. If you want to use the external disk with files bigger than 4 GB, you have to format your new partition in exFAT, and you have to do it on a PC

  • Timestamp in Java log and trace files.

    Hi SAP'ies
    Running PI 7.11 on AIX 6.3 we face an issue with the content of log and trace files from Java.
    Eg.
    The file DefaultTrace_00.0.trc is timestamped 18-05-10 11:16:15. (The same time as the time of the OS/AIX)
    Looking inside the file the last statement is timestamped 2010 05 18 09:16:15.
    How can we ensure that the content of these Java files are timestamped with OS time?
    Looking into ABAP files like dev_w0 the timestamp of the file and the content are equal.
    Best regards,
    Teddy Løv Andersen

    Hello All
    Best way to convert the default trace time is , visit the site
    http://www.csgnetwork.com/epochtime.html
    here enter , for example if you have the following in default trace
    #1.#00265510DE7300120000000F000022030004C77AD7309DF5#1345230317066#com.sap.portal.fpn.rdl
    1345230317066   is time stamp , enter this in the above site to get the time
    Fri Aug 17 2012 21:05:17 GMT+0200
    Regards

  • User login report in Active Directory for specific date and time

    I want to get User login report in Active Directory for specific date and time e.g user logged in at15-01-2015 from 8:00am to 4:00pm
    Is any query, script or any tool available?
    Waiting for reply please

    You can identify the last logon date and time using my script here: https://gallery.technet.microsoft.com/scriptcenter/Get-Active-Directory-User-bbcdd771
    If you would like to get back in time and see when the user did a logon / logoff then you need to have auditing enabled. Once done, you can records from Security log in the event viewer: https://social.technet.microsoft.com/Forums/windowsserver/en-US/98cbecb0-d23d-479d-aa65-07e3e214e2c7/manage-active-directory-users-logon-logoff-events
    I have started a Wiki about how to track logon / logoff and it can help too: http://social.technet.microsoft.com/wiki/contents/articles/20422.record-logon-logoff-activities-on-domain-servers-and-workstations-using-group-policy.aspx
    This posting is provided AS IS with no warranties or guarantees , and confers no rights.
    Ahmed MALEK
    My Website Link
    My Linkedin Profile
    My MVP Profile

  • Win 2008  WL 10.3.3 stdout appearing in .log and .out files

    Recently noticed a ballooning [ServerName].out file in the logs directory. In weblogic management console I do have it configured to redirect stdout and stderr to weblogic logging (.log file). Both the .log and .out file contain the same stdout/stderr information. I would like to eliminate the .out file if possible (since WL only rotates the .log), but cannot find where it is configured. The managed servers are NOT windows services (no -log option).
    Did not find any logging parameters in JAVA_OPTIONS or paramters in the startManagedSvc.cmd file.
    Is this something needing to be corrected at the application level? (log4j)

    opie wrote:
    Recently noticed a ballooning [ServerName].out file in the logs directory. In weblogic management console I do have it configured to redirect stdout and stderr to weblogic logging (.log file). Both the .log and .out file contain the same stdout/stderr information. I would like to eliminate the .out file if possible (since WL only rotates the .log), but cannot find where it is configured. The managed servers are NOT windows services (no -log option).
    Did not find any logging parameters in JAVA_OPTIONS or paramters in the startManagedSvc.cmd file.
    Is this something needing to be corrected at the application level? (log4j)Depends on what you are actually seeing in those files. Are you outputting log4j messages to a log file AND the console?
    Here is a snippet of the log4j configuration file that denotes writing to the console:
        <appender name="ConsoleAppender" class="org.apache.log4j.ConsoleAppender">
            <layout class="org.apache.log4j.PatternLayout">
                <param name="ConversionPattern" value="%d{yyyy-MM-dd hh:mm:ss} %-5p [%t] - %C{1}.%M -> %m%n" />
            </layout>
          </appender>
        <root>
            <level value="ALL" />
            <appender-ref ref="ConsoleAppender" />
        </root>Edited by: ForumKid2 on Dec 29, 2010 11:36 AM

  • Basic question on log and temp files

    Hi,
    I need to create a new database in this way:
    - 2 GB for the data file
    - 1 GB for log and temp files
    This is the command I'm issuing to create the db:
    create tablespace xyz datafile '<path>\xyz.dbf' size 2000M reuse;
    How can I say the size of log and temp files?
    Thank you
    Nicola
    Ps-I'm on windows platform

    user575754 wrote:
    - 1 GB for log and temp filesWhat's the link between log file size and tempfile ?
    This is the command I'm issuing to create the db:
    create tablespace xyz datafile '<path>\xyz.dbf' size 2000M reuse;This command does not actually create a database, but a tablespace. If you ran it, that means your db aleady exists.
    So, not sure to follow you on this thread.
    Nicolas.

  • Location of Redo log and control files?

    Dear all,
    I am checking the location of redo log and control files, but found that the redo log file (like log02a.dbf ....) in the same directory of data files. However, I couldn't find any control files in the data files directries.
    What could be the location of control files?
    Amy

    select name
      from v$controlfile
    or
    show parameter control_filesKhurram

  • External portal capturing internal portal URL in Log and trace file

    Hi,
    We are facing one issue in portal like we have two portals for internal (Intranet) and external (Internet) users.
    Once users logged in the application and try to get the information about mylink from the external portal link (internet) they should not get any information about the internal portal.
    But in log and trace file we can see the external portal link capturing the internal portal URL.
    We need to find, from where system capturing the internal portal URL.
    Thanks.

    The tkproffed trace file is in seconds.
    "set timing" is in hh:mi:ss.uu format. So 00:00:01.01 is 1.01 seconds.
    You have to remember that most of these measurements are rounded. While your trace file says it contains one second of trace data, you know it's more.
    One excellent resource for trace files is "Optimizing Oracle Performance" by Cary Millsap & Jeff Holt. (http://www.amazon.com/Optimizing-Oracle-Performance-Cary-Millsap/dp/059600527X ) I thought I knew trace files before, but this book brings your knowledge to a whole new level.
    There is also an excellent WP by Cary Millsap ( http://method-r.com/downloads/doc_details/10-for-developers-making-friends-with-the-oracle-database-cary-millsap ) that gives you some insight.

  • How to overwrite a log and bad file in external table in oracle 10g

    Hi,
    I have used external table in oracle 10g.whenever use select query in external table orace internally create one log file in specified directory,
    but this log file is growing.How can i overwrite the log file(old to replace with new).I need overwrite a log and bad file in external table.
    kindly give the solutions.
    By
    Siva

    I don't believe that is possible with the LOGFILE clause, but it may be with the BADFILE clause. Here is an excerpt from the documentation :
    The LOGFILE clause names the file that contains messages generated by the external tables utility while it was accessing data in the datafile. If a log file already exists by the same name, the access driver reopens that log file and appends new log information to the end. This is different from bad files and discard files, which overwrite any existing file. NOLOGFILE is used to prevent creation of a log file.
    If you specify LOGFILE, you must specify a filename or you will receive an error.
    If neither LOGFILE nor NOLOGFILE is specified, the default is to create a log file. The name of the file will be the table name followed by _%p and it will have an extension of .log.

Maybe you are looking for

  • Ipod frozen when connecting to PC

    Recently, every time I connected ipod to PC, ipod got frozen and I have to restart again which is helpless though, and my computer doesn't recognise ipod at all, though ipod is charging properly--God```Does it mean I have to keep listening to the sam

  • Reset of counter in file adapter after restart J2EE

    Hi, When the J2EE engine is restarted all counters in the file adapter (Add Counter to filename) are resetted and start at 1 again. Is this a bug? How to prevent this? Even when I put into the file adapter that is has to start counting at 00009 it st

  • Problems with the browser

    Hello, I make an aplication where I manage projects, accesing a apex as developer and run my application and it works well. Then I access to the application as final user and when I modify any data, the aplication does not save the values changed. Wh

  • Web pages closing suddenly

    I've posed this question before, and although emptying the cache worked that time, it doesn't seem to be working this time. Web pages frequently close suddenly and I am prompted to note what I was doing when it happened and send it to mac. Mac must h

  • Get error 403 when trying to download from MAS

    Hi! When I'm trying to download any program from MAS, I get 403 error. The same with update. App Store for iOS works fine. I tried: - reboot - reinstall MAS - different account - hide with tor - change password - change language Using 10.6.6 with all