Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting the User/Owner of another process



As long as the process that returns this name is launched by (or in the name of) the user, it should be able to communicate the proper information to your code. I think the big point you are going to have to adjust to is that you will need two processes, one to load the preferences into the driver (run as root), and the other to tell that process where to look (run as the user in question).
You should also watch out that fairly soon MacOS X will be able to have two different people logging into the GUI at the same time, running their own processes, so you could get two different user preference sets trying to load at the same time.

Karl Kuehn
email@hidden

On Sep 30, 2003, at 12:41 PM, John Farmer wrote:

Long story short: I need to get a user name during or after the login
process so that I can get the user name of the currently logged in user so I
can load the preferences of the logged in user to access the network.
_______________________________________________
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.

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>)



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.