On 12/12/06, Tim Golden <[EMAIL PROTECTED]> wrote:

> But this is all quite Win32-specific (as well as
> being hand-wavingly unspecific). I don't know
> how you'd go about it on *nix but I bet it's nothing
> like the same.

The same general principle applies. You need to get a
UID or similar from a specific user, or you have to
check all connected TTYs and just pick a random user
out of the users logged in. Most systems today are
multi-user so the notion of 'the user logged in' doesn't
make sense system-wide.

I think the best way to solve this is to use a client-server
approach. Have a deamon/service run in the background,
and then have a client started at login that pings the server
and notifies it of your presence.

Tor
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to