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
15 #include "filetools.h"
19 #include <sys/types.h>
24 string const user_name()
26 struct passwd * pw(getpwuid(geteuid()));
29 string name = pw->pw_gecos;
36 string const user_email()
38 string email = GetEnv("EMAIL_ADDRESS");
40 email = GetEnv("EMAIL");
44 } // namespace support