Re: Fast User Switching
Re: Fast User Switching
- Subject: Re: Fast User Switching
- From: Sheehan Olver <email@hidden>
- Date: Tue, 5 Aug 2003 17:36:29 -0400
From the view of each user it is always the front screen, even if it is
switched out. Its like having multiple people sshed in to a single
machine and asking "who is the main person logged in". There is no
"main" person in that case. The fact that one user's screen is on the
monitor is a matter of interface, and something that might and probably
will change. I don't know what kind of feedback you are trying to give
the user, but popping up a window as UserA will only show the window on
UserA's screen. Just guessing, but I don't think the WindowServer is
going to be owned by a single user. Either it is owned by root or there
is a WindowServer process running for each user, and on switch one
process relinquishes control to another (for example how in jaguar the
loginwindow process relinquishes control to the user-owned WindowServer
process).
To answer your technical question on how to figure out who the front
user is, the panther API is still under NDA so even if it is possible,
no one is going to say anything on a non-NDA list.
Btw, I don't have panther, so all of this is just guessing based on
previous experience.
On Tuesday, August 5, 2003, at 03:41 PM,
email@hidden wrote:
You are EXACTLY right. However, in order for my app to make that
decision,
it needs to determine that she (and not you) is currently using the
Mac and
therefore not interrupt her. That is exactly the API I'm looking for.
Without that information, you both look like the same user. If she
logs you
out and then logs herself in it's not a problem. However, if she
leaves you
logged in and fast switches to her account then I can't tell the
difference
between the 2 different users... Hence the gist of of question.
_______________________________________________
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.