Skip to content

Conversation

@MartinNowak
Copy link
Member

Instead of using the username to initialize author and copyright, we could use the user details which are often the full name of a user.

- using the comment field of the passwd file
@MartinNowak
Copy link
Member Author

Implemented

@s-ludwig
Copy link
Member

Looks good. Need to remember to adjust #734 to use getUserName.

s-ludwig added a commit that referenced this pull request Dec 14, 2015
dub init could use user details to get the full name
@s-ludwig s-ludwig merged commit 4b1a8ac into dlang:master Dec 14, 2015
@s-ludwig
Copy link
Member

I'll also have a look at GetUserNameEx to make this work on Windows, too.

@s-ludwig
Copy link
Member

Apparently GetUserNameEx works only if the user is in a domain. NetQueryDisplayInformation or NetGetUserInfo should work, though. But due to DMD missing all required .libs and function declarations, this is getting too much work for me ATM.

@MartinNowak MartinNowak deleted the fix715 branch January 13, 2016 23:55
@s-ludwig s-ludwig mentioned this pull request Apr 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants