Override SpecialFolders.Personal with $HOME #371
Please disregard the build failure, build automation work in progress :)
internalGetHome() will actually pull $HOME if no /etc/passwd entry is available:
look at https://github.com/mono/mono/blob/master/eglib/src/gmisc-unix.c, get_pw_data() and g_get_home_dir() .
If precedence were to change, it would be correct to change it in gmisc-unix.c instead - but the precedence is explicit so unless the reason is no longer relevant this shouldn't change. @migueldeicaza any bells rung?
Excuse me, I'm confused by the code in gmisc-unix.c. The point of the request was to override the value in /etc/passwd. The stated preference in the code is backwards -- if /etc/passwd provides a value, there appears to be no method to override it. My use case is explicitly for when there is a value in /etc/passwd which is not the desired one. Favoring a system file value over the user's local preference is bad design. If there is another method to override /etc/passwd, please tell me about it. Otherwise, please change the precedence.
referenced this pull request
Jun 7, 2015
Hello! I'm the build bot for the Mono project. I need approval from a Mono team member to build this pull request. A team member should reply with "approve" to approve a build of this pull request, "whitelist" to whitelist this and all future pull requests from this contributor, or "build" to explicitly request a build, even if one has already been done. Contributors can ignore this message.