Re: Startup Questons
Re: Startup Questons
- Subject: Re: Startup Questons
- From: J Nozzi <email@hidden>
- Date: Mon, 26 Jul 2004 13:57:32 -0400
I'm not sure whether or not you answered this, but what kind of
'startup' are you referring to? If you're trying to perform
user-related tasks during *system* startup, you may need to re-think
your design. If you mean the 'login' process, you still may need to
rethink your design a little. Without further information on what
you're trying to accomplish, I'm just shooting in the dark.
- J
On Jul 26, 2004, at 1:41 PM, Jim Ways wrote:
But if i call NSHomeDirectoryForUser(NSUserName) wont
i get the same problem? Because it will just return
the root user? How can i find out what user will be
logged in? Will it work if i use a
stringByExpandingTildeInPath instead?
--- J Nozzi <email@hidden> wrote:
If you're not logged in as the user in question,
you probably need to
use NSHomeDirectoryForUser() rather than
NSHomeDirectory().
- J
On Jul 26, 2004, at 12:23 PM, Jim Ways wrote:
NSHomeDirectory() stringByAppendingPathComponent:
It works completly fine and normal when it is run
in
the directory outside of startup (as if a double
click
it) But when it runs at startup with root access
it
cant seem to read in that file.
--- Larry Fransson <email@hidden> wrote:
On Jul 26, 2004, at 06:17, Jim Ways wrote:
Its a startup bundle and is running with root
privligies. It is unable to use the command
initWithContentsOfFile: I was assuming it could
not
access the files during startup for one reason
or
another. Am I not providing the right
requirements
in
the startup parameters for the file perhaps?
The first thing to look at is the file path.
What
does it look like?
If there is a tilde (~) in the path, you'll have
to
expand that.
Larry Fransson
Seattle, WA
_______________________________________________
cocoa-dev mailing list |
email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will
be
ignored.
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will
be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be
ignored.
__________________________________
Do you Yahoo!?
Yahoo! Mail is new and improved - Check it out!
http://promotions.yahoo.com/new_mail
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.