[Bug 193426] lang/mono: allow overriding Environment.SpecialFolder.Personal e.g., HOME=${WRKDIR}

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Sep 7 12:50:10 UTC 2014


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=193426

--- Comment #1 from Jan Beich <jbeich at vfemail.net> ---
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
 * <envar>HOME</envar> environment variable if it is set to an existing
 * absolute path name, falling back to the <filename>passwd</filename>
 * file in the case that it is unset.
 *
 * If the path given in <envar>HOME</envar> is non-absolute, does not
 * exist, or is not a directory, the result is undefined.
 *
 * <note><para>
 *   Before version 2.36 this function would ignore the
 *   <envar>HOME</envar> environment variable, taking the value from the
 *   <filename>passwd</filename> 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).
 * </para><para>
 *   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 <envar>HOME</envar> environment
 *   variable yourself or unset it before calling any functions in GLib.
 * </para></note>
 *
 * Returns: the current user's home directory
 */

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-mono mailing list