• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: fast user switching (was <no subject>)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: fast user switching (was <no subject>)


  • Subject: Re: fast user switching (was <no subject>)
  • From: Tom Sutcliffe <email@hidden>
  • Date: Wed, 6 Aug 2003 01:00:08 +0100

This is the case. The app is launched as a Login item and is owned by the
user logging in. And I agree with you 100%, the second user should not be
affected by it. But the only way that can happen is if the background app
KNOWs there is another user using the system via a fast user switch. What I
am looking for is a way to make that determination.

Guys,

The background app (launched from a login item) simply cannot affect the second user, full stop. It doesn't need to check whether the user it's running as has been fast-switched away from before popping up a dialog or whatever. Any dialog it does show will be in the context of the first user, and the second user won't see it. (Assuming it's running as a login item: it simply doesn't have the privileges to make any changes visible to any other users.)

If you really want the app to be able to look at all current sessions on the computer (ie to find who's actually sitting at the computer right now), you can't run it as a login item background app, it will have to be a StartupItem running as root. If you do this, I've no idea how you'd proceed as I don't have Panther.

As other people have pointed out, there may well not be an API for this because the concept of 'the person sitting in front of the computer right now' becomes meaningless if you allow remote graphical logins, which Apple may well do now they have added fast-switching. Or, there might not be a formal public API for it *yet*. Panther's not finished, remember.

But hey, what do I know, I don't have Panther. On the plus side, I can talk about it as much as I like, but on the minus, I could be completely wrong ;)

Tom
_______________________________________________
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: 
 ><no subject> (From: Alec Carlson <email@hidden>)

  • Prev by Date: Re: am i loading this pdf data correctly or not?
  • Next by Date: Re: <no subject>
  • Previous by thread: <no subject>
  • Next by thread: Re: <no subject>
  • Index(es):
    • Date
    • Thread