mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-24 18:43:37 +00:00
45a03f4f67
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1019 a592a061-630c-0410-9148-cb99ea01b6c8
16 lines
295 B
C
16 lines
295 B
C
#include <config.h>
|
|
|
|
#include "support/lyxlib.h"
|
|
#include "support/filetools.h"
|
|
#include "gettext.h"
|
|
|
|
string const lyx::getUserName()
|
|
{
|
|
string userName(GetEnv("LOGNAME"));
|
|
if (userName.empty())
|
|
userName = GetEnv("USER");
|
|
if (userName.empty())
|
|
userName = _("unknown");
|
|
return userName;
|
|
}
|