Re: Getting the User/Owner of another process
Re: Getting the User/Owner of another process
- Subject: Re: Getting the User/Owner of another process
- From: David Remahl <email@hidden>
- Date: Tue, 30 Sep 2003 18:17:33 +0200
On 30 sep 2003, at 17.51, John Farmer wrote:
Sorry for the confusion. I am working on 10.2.6, I am not working with
Panther... yet. I have expectations of those same problems you
mentioned,
and more for 10.3. I am writing a Startup Item, Preference Pane, and
Driver
for networking. Since you cannot have mutliple users running
simulaniously
in 10.2, I can rely on getting the User that owns Finder, since there
will
only ever be one user that owns Finder at one time, also according to
the
documentation for NSUserName() and NSFullUserName() these expectations
are
reasonable, because there will only ever be one user logged in.
Incorrect. I am often logged in both remotely over ssh and locally on a
screen. It also happens (in rare cases) that I run several Finders in
parallel, one as myself and one as root or some other user. I also
routinely quit the Finder to save some memory.
Your method would fail in some or all of these situations.
The way the
driver, pref pane, and startup item work together I need to find a
reliable
way to get the user name when I log in so that the startup item (which
is a
daemon) can set the preferences to the pref pane and the driver.
Sorry for the confusion, and thanks for the help,
You're still going about this the wrong way, for sure. What kind of
driver is it?
/ Rgds, David
_______________________________________________
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.