From owner-freebsd-mono@FreeBSD.ORG Sun Sep 7 12:50:10 2014 Return-Path: Delivered-To: mono@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7F9FAF65 for ; Sun, 7 Sep 2014 12:50:10 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4E3B41C13 for ; Sun, 7 Sep 2014 12:50:10 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id s87CoAYY022339 for ; Sun, 7 Sep 2014 12:50:10 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: mono@FreeBSD.org Subject: [Bug 193426] lang/mono: allow overriding Environment.SpecialFolder.Personal e.g., HOME=${WRKDIR} Date: Sun, 07 Sep 2014 12:50:10 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports Tree X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: jbeich@vfemail.net X-Bugzilla-Status: Needs Triage X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: mono@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-mono@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Mono and C# applications on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Sep 2014 12:50:10 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=193426 --- Comment #1 from Jan Beich --- devel/glib20 provides some background: /** * g_get_home_dir: * * Gets the current user's home directory. * * As with most UNIX tools, this function will return the value of the * HOME environment variable if it is set to an existing * absolute path name, falling back to the passwd * file in the case that it is unset. * * If the path given in HOME is non-absolute, does not * exist, or is not a directory, the result is undefined. * * * Before version 2.36 this function would ignore the * HOME environment variable, taking the value from the * passwd database instead. This was changed to * increase the compatibility of GLib with other programs (and the XDG * basedir specification) and to increase testability of programs * based on GLib (by making it easier to run them from test * frameworks). * * If your program has a strong requirement for either the new or the * old behaviour (and if you don't wish to increase your GLib * dependency to ensure that the new behaviour is in effect) then you * should either directly check the HOME environment * variable yourself or unset it before calling any functions in GLib. * * * Returns: the current user's home directory */ -- You are receiving this mail because: You are the assignee for the bug.