3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
8 * Full author contact details are available in file CREDITS.
13 #include "support/userinfo.h"
14 #include "support/filetools.h"
16 #include <boost/assert.hpp>
22 #include <sys/types.h>
29 string const user_name()
31 struct passwd * pw(getpwuid(geteuid()));
34 string name = pw->pw_gecos;
41 string const user_email()
43 string email = GetEnv("EMAIL_ADDRESS");
45 email = GetEnv("EMAIL");
49 } // namespace support