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>
23 string const user_name()
25 struct passwd * pw(getpwuid(geteuid()));
28 string name = pw->pw_gecos;
35 string const user_email()
37 string email = GetEnv("EMAIL_ADDRESS");
39 email = GetEnv("EMAIL");