| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
When the Startup Item calls NSUserName() (which according to the
documentation and I quote: "Returns the logon name of the current user."),
returns root (the owner of the process), not the logon name of the current
user. When I run NSHomeDirectory it gives me the roots home directory, this
doesn't help me because I need the current User Name to get the path for the
preferences.
/Users/johnfarmer/Library/Preferences/... I need to get the user name for
John Farmer so I can create the path to access the user's plist. I can
however get the user name from the Preference Pane, but I can't have the
user opening the Preference Pane everytime they login just to startup the
network.
| References: | |
| >Re: Getting the User/Owner of another process (From: "Alastair J.Houghton" <email@hidden>) | |
| >Re: Getting the User/Owner of another process (From: "John Farmer" <email@hidden>) | |
| >Re: Getting the User/Owner of another process (From: David Remahl <email@hidden>) | |
| >Re: Getting the User/Owner of another process (From: "John Farmer" <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.