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.
14 #include "filetools.h"
16 #include <boost/assert.hpp>
20 #include <sys/types.h>
27 string const user_name()
29 struct passwd * pw(getpwuid(geteuid()));
32 string name = pw->pw_gecos;
39 string const user_email()
41 string email = GetEnv("EMAIL_ADDRESS");
43 email = GetEnv("EMAIL");
47 } // namespace support