Re: getting username
Frederic Bastien <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.nspr |
|---|---|
| Message-ID | <[email protected]> |
Wan-Teh Chang wrote: > On Nov 9, 2007 10:50 AM, Frederic Bastien <[email protected]> wrote: > >>Hi, >> >>I can't locate in the documentation a way to get the username with nspr. >>Do you know how? I would preffer the current username of the running >>process, not the username used durring logging. > > > There is no NSPR function that gets the username. Sorry. > > Why did you mention logging? > > Wan-Teh Hi, That's my english. I was refering to when the user log in the system. Their can be a difference between the current user name and the username used during logging under linux. The first is the USER environnement variable and the second is the LOGNAME environnement variable. thanks Frédéric Bastien