mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-01 05:25:55 +00:00
16 lines
289 B
C++
16 lines
289 B
C++
|
#include <config.h>
|
||
|
|
||
|
#include "support/lyxlib.h"
|
||
|
#include "support/filetools.h"
|
||
|
#include "gettext.h"
|
||
|
|
||
|
string lyx::getUserName()
|
||
|
{
|
||
|
string userName(GetEnv("LOGNAME"));
|
||
|
if (userName.empty())
|
||
|
userName = GetEnv("USER");
|
||
|
if (userName.empty())
|
||
|
userName = _("unknown");
|
||
|
return userName;
|
||
|
}
|