On 8 October 2010 13:32, Sven Barth <pascaldra...@googlemail.com> wrote: > > Let me guess: UID->username is a libc function...
Problem is you can't always map a UID to a username under Unix. The username is not always in the /etc/passwd file. You can have LDAP (I think that's what it's called), Kerberos etc... users. I noticed the same problem in fpGUI's file dialogs. So I wrapped that code in try..except calls. Try the local user (in /etc/passwd), if it fails to resolve, fall back to using the UID as is. On standard desktop linux this is 99% of the times ok, but in a large corporate environment things might be different. Either way, using the UID should be fine too...or better that it currently is. -- Regards, - Graeme - _______________________________________________ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net:8080/fpgui/ _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal