On 10-03-05 17:00:12, Till Maas wrote:
 ...
> But it seems that os.getlogin() is too smart for this purposes, e.g.
> for me it always uses the username that started X, even if I "su -" 
> or "sudo -i" into another account.

The Python docs[1] suggest using the environment variable LOGNAME.

[1] <http://docs.python.org/library/os.html#os.getlogin>

-- 
____________________________________________________________________
TonyN.:'                       <mailto:tonynel...@georgeanelson.com>
      '                              <http://www.georgeanelson.com/>
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel

Reply via email to